Core Function WinWait
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> WinWait ( <title>, <text>, <timeout> ) </pre> === Description === Waits until the requested window exists. === Parameters === ==== Title ==== The title of the window. ...") |
m (1 revision) |
||
(4 intermediate revisions by one user not shown) | |||
Line 23: | Line 23: | ||
=== Return Value === | === Return Value === | ||
− | + | Success: Returns 1. | |
− | + | Failure: Returns 0 if timeout occurred. | |
− | + | === Remarks === | |
− | + | The window is polled every 250 milliseconds or so. | |
See "WinTitleMatchMode" in [[Core Function Opt|Opt]]. | See "WinTitleMatchMode" in [[Core Function Opt|Opt]]. |
Latest revision as of 12:38, 14 June 2015
WinWait ( <title>, <text>, <timeout> )
Contents |
Description
Waits until the requested window exists.
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
The window is polled every 250 milliseconds or so.
See "WinTitleMatchMode" in Opt.
Example
// Wait for the window "Untitled" to exist Run("notepad"); WinWait("Untitled"); // Wait a maximum of 5 seconds for "Untitled" to exist WinWait("Untitled", "", 5);