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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Template | File | Yes | Picture to wait for. | |
| Timeout (seconds) | Number | No | 30 | Maximum wait. |
| Tolerance | Number | No | 10 | Allowed difference in percent (0 = pixel-exact); raise for anti-aliased or scaled screens. |
| Interval (milliseconds) | Number | No | 500 | Pause between two looks at the screen, in milliseconds. |
| Until gone | Boolean | No | false | Wait for the picture to disappear instead, e.g. a loading spinner. |
| X | Number | No | Search region left; the whole image or screen when the region is empty. | |
| Y | Number | No | Search region top. | |
| Width | Number | No | Search region width. | |
| Height | Number | No | Search region height. |
Outputs
| Output | Type | What it is |
|---|---|---|
| x | Number | Centre x on screen. |
| y | Number | Centre y on screen. |