Created
March 10, 2023 17:57
-
-
Save RaptorX/be5762f765f1a3c734557db4e02b0468 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
txt := inputhook("v") | |
::test:: | |
{ | |
txt.tacker := "test" | |
SendInput 'default --string ' | |
txt.start() | |
} | |
::test2:: | |
{ | |
txt.tacker := "test2" | |
SendInput 'another --string ' | |
txt.start() | |
} | |
Enter:: | |
{ | |
if !txt.inprogress | |
return Send("{Enter}") | |
txt.stop() | |
switch txt.tacker | |
{ | |
case 'test': | |
SendInput ' --opt 2 --opt 3' | |
case 'test2': | |
SendInput ' --weird 2 --opt ' | |
} | |
msgbox txt.input | |
txt.input := '' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment