But i don't want to declare global variables at the top of the file. Is it possible to declare global variables below hotkey F24 which makes the end of auto-execution section?
Code: Select all
; str:= "WORKS!" ; works fine here
f24::exitApp
str:= "WORKS!" ; doesn't work here (even with "global")
#IfWinActive ahk_exe mspaint.exe
1::msgbox % str