Show / Hide Table of Contents

Method uiimageFinder.Wait


Overload

See uiimage.wait.

public uiimage Wait(Seconds timeout, IFArea area)
Parameters
timeout  (Seconds)

Timeout, seconds. Can be 0 (infinite), >0 (exception) or <0 (no exception). More info: Wait timeout.

area  (IFArea)

Where to search:

  • wnd - window or control (its client area).
  • elm - UI element.
  • System.Drawing.Bitmap - image.
  • RECT - a rectangle area in screen.
  • IFArea - can contain wnd, elm or Bitmap. Also allows to specify a rectangle in it, which makes the area smaller and the function faster. Example: new(w, (left, top, width, height)).
Returns
uiimage
Exceptions
Exception

Exceptions of uiimage.wait, except those of the constructor.

Remarks

Same as uiimageFinder.Find, except:

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