Share this post

Link to post

Share on other sites

Airwolf 5

Airwolf 5

Is it possible for a script to receive a message when a certain window closes?

(tried searching..)

WinClose() will attempt to close a window and will return 1 if successful. WinWaitClose() simply waits for a window to close and returns 1 when the window closes. You can also add a timeout to WinWaitClose().

Share this post

Link to post

Share on other sites

amokoura 1

amokoura 1

My intention was the "Window Close Waiter" to run in background of the script. The script is doing it's own thing and immediately after a certain window closes, the script would be notified of it. Maybe some global variable changes or something.

Optionally a function would be called if a window message like WM_CLOSE happened. I haven't used messages before so I don't know if it could work. It would be nice if I could save the adlib for some other use.