Waits until an application is waiting for user input.
WinWaitReady( partial-winname, timeout )
(s) partial-winname the initial part of, or an entire, window name.
(i) timeout the number of milliseconds to wait. Specify 0 to return immediately (no wait). Specify -1 for no timeout (wait forever).
(i) It returns @TRUE if it successfully waits, or @FALSE if a time-out occurred (or if it was unable to initiate a wait).
This function waits until the process which created the specified window is waiting for user input with no input pending, or until the specified time-out interval has elapsed. It can only be used with 32-bit GUI applications.
Run("Notepad.exe","") retvalue = WinWaitReady("~Notepad", 5) WinClose("~Notepad")