I have a script in QARun 4.8.0 build 1484 that waits at a particular point until a window disappears.
I was using the NotExists event but this was not working. Checking with the Developer I find that the window is being hidden, not destroyed. This means that I can not use the Destroy event, but according to the help file there is no reason why I can not use the NotExists event. However this does not work in this instance and I have a feeling the caveat on the Destroy event about hidden windows applies to the NotExists event as well.
I would use a Hidden event if QARun had one but unfortunately it does not.
This leaves me in a bit of a pickle, unable to check when the window has been hidden.
I can see two possible workarounds:
1) Use the Focus event
2) Check the screen bitmap to see if it exists
The problem with 1 is that I cannot guarantee the focus in all circumstances.
The problem with 2 is that the window in question won't appear in the same position each time, thus making the screen bitmap different.
I just got around this by checking to see if the window is active - making the assumption that a hidden window is inactive... a bit of a cludge to say the least and I'll try using IsWindow() when time permits.