Skip to content
This repository
tree: 6ed7beb403
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 27 lines (25 sloc) 0.708 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
textPrompt(thisText) {
Gui,7: +AlwaysOnTop -SysMenu +ToolWindow
Gui,7: Add,Text,x5 y5, Enter the text you want to insert:
Gui,7: Add,Edit,x20 y25 r1 vpromptText
Gui,7: Add,Text,x5 y50,Your text will be replace the `%p variable:
Gui,7: Add,Text,w300 Wrap x20 y70,%thisText%
Gui,7: Show,auto,Enter desired text
Hotkey,IfWinActive,Enter desired text
Hotkey,Enter,SubmitPrompt
Hotkey,NumpadEnter,SubmitPrompt
;Hotkey,Space,
Hotkey,Escape,ExitPrompt
WinWaitClose,Enter desired text
}
return

SubmitPrompt:
Gui, 7: Submit
Gui, 7: Destroy
escapePrompt =
StringReplace,ReplacementText,ReplacementText,`%p,%promptText%
return

ExitPrompt:
Gui, 7: Destroy
escapePrompt = 1
return
Something went wrong with that request. Please try again.