Core Function WinWaitClose
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> WinWaitClose ( <title>, <text>, <timeout> ) </pre> === Description === Waits until the requested window does not exist === Parameters === ==== Title ==== The title of ...")
Newer edit →
(Created page with "<pre> WinWaitClose ( <title>, <text>, <timeout> ) </pre> === Description === Waits until the requested window does not exist === Parameters === ==== Title ==== The title of ...")
Newer edit →
Revision as of 17:39, 4 December 2011
WinWaitClose ( <title>, <text>, <timeout> )
Contents |
Description
Waits until the requested window does not exist
Parameters
Title
The title of the window.
Text
Optional; The text of the window to read.
Timeout
Optional; Timeout in seconds.
Return Value
Success: Returns 1.
Failure: Returns 0 if timeout occurred.
Remarks
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.
See "WinTitleMatchMode" in Opt.
Example
if(WinWaitClose("Untitled", "", 5)) // Wait 5 seconds for the window to close { println("A Notepad window does not exist"); } else { println("There is still a notepad window"); }