Skip to main content

Wait for image

Wait until a picture appears on the screen, or disappears from it, checking a region at a chosen interval (IMAGE.NOT_FOUND after the timeout).

Command in the Image recognition toolkit · id ooa.image/wait_for_image · 9 inputs (1 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
TemplateFileYesPicture to wait for.
Timeout (seconds)NumberNo30Maximum wait.
ToleranceNumberNo10Allowed difference in percent (0 = pixel-exact); raise for anti-aliased or scaled screens.
Interval (milliseconds)NumberNo500Pause between two looks at the screen, in milliseconds.
Until goneBooleanNofalseWait for the picture to disappear instead, e.g. a loading spinner.
XNumberNoSearch region left; the whole image or screen when the region is empty.
YNumberNoSearch region top.
WidthNumberNoSearch region width.
HeightNumberNoSearch region height.

Outputs​

OutputTypeWhat it is
xNumberCentre x on screen.
yNumberCentre y on screen.