i need a script which has an inbuild gobal on/off toggle hotkey and before executing checks the active window AND the on/off status/blocker.
Unfortunately i can't get it to work.
Code: Select all
SetBatchLines, -1
SetKeyDelay -1
SetTitleMatchMode, 3
#NoEnv
#KeyHistory 0
#IfWinActive XXXXXXX
~F15:: ; Blocker on/off toggle
if(blocker)
{
blocker := false
}
else
{
blocker := true
}
return
[b]#If !blocker AND WinActive XXXXXXX ; here i tried countless different variants[/b]
1:: ; just an example
sendinput 2
return
Thanks