I have the following code going:
Code: Select all
#if winactive("STANDBY")
Lctrl & numpad7::
guistandbyWO:
gui WO:show
gui standby:hide
return
#if
Is it possible to change this behavior in a way that it listens to my hotkey, when a certain GUI is SHOWN?
Something like:
Code: Select all
#if GUISHOWN("STANDBY")
Lctrl & numpad7::
guistandbyWO:
gui WO:show
gui standby:hide
return
#if
So when my STANDBY gui is hidden, it will not perform action with that hotkey.
This is mostly useful as i have the gui alwaysontop in a corner, and i want to call functions by hotkey. Without having to activate the window.
The reason why i cannot just remove the IF statement, is because i want my ctrl+7 to perform a different task when GUI WO is shown.