Act next to a label
Find a label on the screen with OCR (e.g. Invoice number:) and click, type into or read the field next to it: for remote desktops and screens without accessible controls (G4).
Command in the OCR toolkit · id ooa.ocr/act_near_label · 10 inputs (1 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Label | String | Yes | The label's text as the screen shows it. | |
| Where | String | No | right | Where the field is from its label. |
| Action | String | No | read | What to do with the field. |
| Text | String | No | type: the text to type; it may come from the vault. | |
| Occurrence | Number | No | 1 | Which appearance of the label, counting in reading order from 1. |
| Gap | Number | No | 8 | Pixels between the label and the field. |
| Field width | Number | No | 220 | Width of the field in pixels. |
| Field height | Number | No | 0 | Height of the field in pixels; a little more than the label when 0. |
| Language | String | No | eng | Tesseract language(s), e.g. eng, deu or eng+fra. |
| Wait (seconds) | Number | No | 0 | Keep looking for the label this many seconds; 0 looks once. |
Outputs
| Output | Type | What it is |
|---|---|---|
| text | String | read: the text of the field; otherwise empty. |
| x | Number | Centre x of the field on the screen. |
| y | Number | Centre y of the field on the screen. |