Screen: Wait for an image to appear on screen

Wait for an image to appear on screen.

Help Centre › Building Processes

Wait for an image to appear on screen.

Add it to a process

In the process designer, open the Add step tab. Find Wait for an image to appear on screen under Screen › Wait, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
Template image pathYesThe file path to the reference image
VariableYesName of the variable where the result will be stored Default: location.
Timeout (seconds)NoMaximum time to wait in seconds Default: 30.
Check interval (seconds)NoHow often to check in seconds Default: 0.5.
Match confidenceNoThe minimum match confidence (0-100). Higher values require a closer match Default: 0.9.
Search region (x,y,w,h)NoThe screen region to search in (x,y,width,height)

What it gives back

  • {location} – Match location when found

See all Screen steps.

Errors

ErrorDescription
Image file not foundThe specified image file path does not exist

Tips

  • This function returns null on timeout rather than raising an exception; check the variable for null to determine if the image was found

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.