Code: Select all
#IfWinActive, ahk_class WarframePublicEvolutionGfxD3D11
#MaxThreadsPerHotkey 4
~MButton::
KeyDown := !KeyDown
If KeyDown
SendInput {F11 down}
Else
SendInput {F11 up}
Toggle1 := !Toggle1
While Toggle1{
Send, {F10}
sleep, 25
}
return
it works perfectly as on and off switch
my poblem is when its ON and for some reason i alt tab game or some window will pop up
and game stays in background i need to in best case suspend script
and un suspend it when i come back to game
if thats not possible reloading breaking or stopping script while game is not active willd be fine enough
i was trying
Code: Select all
SetTimer, CheckForWindow, 500 ; this checks every 500ms = 1/2 second
IfWinNotActive, ahk_class WarframePublicEvolutionGfxD3D11
suspend
return
so any help would be cool