My idea so far was
Code: Select all
#IfWinNotActive window1.exe
SendInput {Hotkey1, off}
SendInput {Hotkey2} (spam)
#IfWinActive ahk.exe window1.exe
SendInput {Hotkey2, Off}
(image 1 or 2 recognized) = SendInput {Hotkey3} (single use)
Sleep 100
SendInput {Hotkey4} (spam)
SendInput {Hotkey4, Off} (after 12m, or 720000ms)
sleep 100
SendInput {Hotkey5} (single use)
Sleep 100
SendInput {Hotkey1} (spam)
return
Code: Select all
*f2::
toggle := !toggle
if (toggle) {
SetTimer, HotKey1, 1
} else {
SetTimer, HotKey1, Off
}
return