Show / Hide Table of Contents

Method wndFinder.Wait


Overload

Waits until window exists or is active.

public wnd Wait(Seconds timeout, bool active)
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.

Returns
wnd

Returns wndFinder.Result. On timeout returns default(wnd) if timeout is negative; else exception.

Exceptions
TimeoutException

timeout time has expired (if > 0).

Remarks

Same as wndFinder.Find, except:

  • 0 timeout means infinite.
  • on timeout throws TimeoutException, not NotFoundException.
  • has parameter active.