Method wnd.waitAny
Overload
Waits until any of specified windows exists or is active.
public static (int index, wnd w) waitAny(Seconds timeout, bool active, params wndFinder[] windows)
Parameters
timeout (Seconds)
Timeout, seconds. Can be 0 (infinite), >0 (exception) or <0 (no exception). More info: Wait timeout. |
active (bool)
The window must be the active window (wnd.active), and not minimized. |
windows (wndFinder[])
Specifies windows, like |
Returns
(int index, wnd w)
1-based index and window handle. On timeout returns |
Exceptions
TimeoutException
timeout time has expired (if > 0). |
Remarks
By default ignores invisible and cloaked windows. Use wndFinder flags if need.
Examples
var (i, w) = wnd.waitAny(10, true, "* Notepad", new wndFinder("* Word"));
print.it(i, w);