Skip to content

Instantly share code, notes, and snippets.

@RaptorX
Created March 10, 2023 17:57
Show Gist options
  • Save RaptorX/be5762f765f1a3c734557db4e02b0468 to your computer and use it in GitHub Desktop.
Save RaptorX/be5762f765f1a3c734557db4e02b0468 to your computer and use it in GitHub Desktop.
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