Skip to content

Instantly share code, notes, and snippets.

@RaptorX
Last active March 10, 2023 17:59
Show Gist options
  • Save RaptorX/a452ea5c0e6702518f4723d2539d87eb to your computer and use it in GitHub Desktop.
Save RaptorX/a452ea5c0e6702518f4723d2539d87eb to your computer and use it in GitHub Desktop.
txt := inputhook("v")
::test::
tracker := "test"
SendInput % "default --string "
txt.start()
return
::test2::
tracker := "test2"
SendInput % "another --string "
txt.start()
return
Enter::
if !txt.inprogress
{
Send {Enter}
return
}
txt.stop()
switch tracker
{
case "test":
SendInput, % " --opt 2 --opt 3"
case "test2":
SendInput, % " --weird 2 --opt"
}
tracker := ""
msgbox % txt.input
txt.input := ""
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment