Click text on screen
Find a word or phrase (or its n-th appearance) on the screen with OCR and click it with the chosen button, optionally offset from its centre (OCR.TEXT_NOT_FOUND when absent).
Command in the OCR toolkit · id ooa.ocr/click_text · 7 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Text | String | Yes | Word or phrase to click. | |
| Double-click | Boolean | No | false | Double-click. |
| Language | String | No | eng | Tesseract language(s), e.g. eng, deu or eng+fra. |
| Occurrence | Number | No | 1 | Which appearance to click, counting in reading order from 1. |
| Button | String | No | left | Mouse button to click with. |
| Offset x | Number | No | 0 | Pixels to the right (negative: left) of the text's centre to click, e.g. to hit a field next to a label. |
| Offset y | Number | No | 0 | Pixels below (negative: above) the text's centre to click. |
Outputs
| Output | Type | What it is |
|---|---|---|
| x | Number | Clicked x. |
| y | Number | Clicked y. |