I have simple question that i can`t find answer by searching internet.
How can I make my lines into one (single) line?
for example this is a working code
right::
Send, ^s
Reload
Send, hello world
and this is not
right::Send, ^s::Reload::Send, hello world
Autohotkey doesn't have a statement terminator like the ;
in c and javascript.
However if your goal is compact and readable code, refactoring using functions can help you achieve this.
Your code expressed in one line:
right::alpha("^s", "hello world")
alpha(text1, text2) {
send % text1
tooltip "reload" will interrupt your script. Any code following "reload" may not execute
send % text2
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With