Pauses execution of the script until the requested window is not active.
WinWaitNotActive ( "title" [, "text" [, timeout = 0]] )
The window is polled every 250 milliseconds or so.
WinActive, WinExists, WinWait, WinWaitActive, WinWaitClose, WinWaitDelay (Option)
; Wait for the window "[CLASS:Notepad]" to not be active.
WinWaitNotActive ("[CLASS:Notepad]")
; Wait a maximum of 5 seconds for "[CLASS:Notepad]" to not be active.
WinWaitNotActive ("[CLASS:Notepad]","",5)