I have the following script, the x
hotkey can only be fired if active
has 1
, this is as desired:
#singleinstance, force
active := 1
Hotkey If, (active)
#If (active)
x::
tooltip, x is pressed
return
#If
z::
;disable the Hotkey If, (!MG_Active) condition for "x"s
return
Later on during the scripts life time need to remove this Hotkey If, <epression>
equation from the script, as the scripts code entirely consists of the following, thus x
hotkey always fires regardless of what active
has:
#singleinstance, force
active := 1
x::
tooltip, x is pressed
return
z::
;disable the Hotkey If, (!MG_Active) condition for "x"s
return
While writting this, I realised I could just use z
to set active
to 0
, but I really need to figure how this aspect of the hotkey
command works. I spent all day stuck on this.