How can I detect if a CustomWindow is in focus (or not)? The FocusObject action only works on TextEntry or keyboard centric objects. I've attempted to use something like SetVar "[FocusObj]" "[FocusedObject]" inside a While/EndWhile action but it doesn't immediately set the FocusedObject variable.
What I want is to close a custom window if the mouse is clicked anywhere outside the custom window.
Thanks.
How can I detect if a CustomWindow is in focus (or not)? The FocusObject action only works on TextEntry or keyboard centric objects. I've attempted to use something like SetVar "[FocusObj]" "[FocusedObject]" inside a While/EndWhile action but it doesn't immediately set the FocusedObject variable.
What I want is to close a custom window if the mouse is clicked anywhere outside the custom window.
Thanks.
proforma.guyot has reacted to this post.