Pauses execution of the script until the requested window exists.
WinWait ( "title" [, "text" [, timeout = 0]] )
The window is polled every 250 milliseconds or so.
ProcessWait, WinActive, WinExists, WinWaitActive, WinWaitClose, WinWaitDelay (Option), WinWaitNotActive
Example()
Func Example()
; Run Notepad
Run ("notepad.exe")
; Wait 10 seconds for the Notepad window to appear.
WinWait ("[CLASS:Notepad]","",10)
; Wait for 2 seconds to display the Notepad window.
Sleep (2000)
; Close the Notepad window using the classname of Notepad.
WinClose ("[CLASS:Notepad]")
EndFunc ;==>Example