Pauses execution of the script until the requested window is active.
WinWaitActive ( "title" [, "text" [, timeout = 0]] )
The window is polled every 250 milliseconds or so.
ProcessWait, WinActive, WinExists, WinWait, WinWaitClose, WinWaitDelay (Option), WinWaitNotActive
Example()
Func Example()
; Run Notepad
Run ("notepad.exe")
; Wait 10 seconds for the Notepad window to appear.
WinWaitActive ("[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