Pauses execution of the script until the requested window does not exist.
WinWaitClose ( "title" [, "text" [, timeout = 0]] )
If the window already doesn't exist when this function is called it will return 1 immediately. The window is polled every 250 milliseconds or so.
ProcessWaitClose, WinActive, WinExists, WinWait, WinWaitActive, WinWaitDelay (Option), WinWaitNotActive
; Wait for the window "[CLASS:Notepad]" to not exist.
WinWaitClose ("[CLASS:Notepad]")
; Wait a maximum of 5 seconds for "[CLASS:Notepad]" to not exist.
WinWaitClose ("[CLASS:Notepad]","",5)