Hello, i would be really thankfull if you could help me write a simple ahk.
So i need a ahk that will press escape button, wait 5 seconds then press escape button again, wait 42 minutes and then repeat.
If its possible activate/deactivate on F11 button, thanks.
Help writing a simple ahk Topic is solved
Re: Help writing a simple ahk
Code: Select all
#MaxThreadsPerHotkey 2
F11::
on := !on
While on {
Send {Esc}
Loop, 5
Sleep, 1000 * on
Until !on
Send % on ? "{Esc}" : ""
Loop, % 60 * 42
Sleep, 1000 * on
Until !on
}
Return
Re: Help writing a simple ahk
Thanks! But i have a problem, the game that im using this script for needs some time pressing buttons so could you add the
Send, {Esc down}
Sleep 15
Send, {Esc up}
thing please.
Send, {Esc down}
Sleep 15
Send, {Esc up}
thing please.