Click image
Find a picture on the screen (optionally waiting for it, in a region, or its n-th appearance) and click it with the chosen button at its centre, corner or an offset.
Command in the Image recognition toolkit · id ooa.image/click_image · 14 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Template | File | Yes | Picture to click. | |
| Double-click | Boolean | No | false | Double-click. |
| Tolerance | Number | No | 10 | Allowed difference in percent (0 = pixel-exact); raise for anti-aliased or scaled screens. |
| Button | String | No | left | Mouse button to click with. |
| Occurrence | Number | No | 1 | Which match to use when the picture appears several times, counting in reading order from 1. |
| Position | String | No | center | Point reported (and clicked): center of the match, or its top_left corner; offsets are added to it. |
| Offset x | Number | No | 0 | Pixels added to the reported x, e.g. to reach a field to the right of a label picture. |
| Offset y | Number | No | 0 | Pixels added to the reported y. |
| Timeout (seconds) | Number | No | 0 | Keep looking for up to this many seconds before failing; 0 looks once. |
| 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. | |
| Window | String | No | Look only inside this window (text in its title, * and ?, or re:); x and y then count from its top-left corner (G4). |
Outputs
| Output | Type | What it is |
|---|---|---|
| x | Number | Clicked x. |
| y | Number | Clicked y. |