Whenever I run the script, if I try to alt tab the program, the script stops, does anyone have any idea how to fix this? This is my code so far:
Code: Select all
NumpadDot::
toggle := !toggle
while toggle
loop, 100
{
controlsend, , {a Down}{p Down}{w up}, ahk_exe javaw.exe
sleep 69000
controlsend, , {a Up}{w Down}, ahk_exe javaw.exe
sleep 1000
controlsend, , {w up}{d down}, ahk_exe javaw.exe
sleep 69000
controlsend, , {w down}{d up}, ahk_exe javaw.exe
sleep 1000
}
return
Pause::Exitapp