Hi
I wonder if it's possible to interrupt my script when a specific window closes. This is similar to GUISetOnEvent() but the window I'm using is not created by GUICreate(), it's just a window app.
My script checks with some frecuency whether the window still exists. However, this is racy since this event is asynchronic w.r.t my script. When it happens, my script end up clicking any other window behind.
Options to consider are
- Always use ControlClick to prevent clicks outside this window.
- With a timer, poll the existence of the window. Still racy but less probable to happen. (efficiency is not required)
- Get interrupted whenever the window dissapears. (What I'm looking for)
Actually, I use MouseClick with client coords.
Thanks in advance