Skip to main content

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​

InputTypeRequiredDefaultWhat it is
LabelStringYesThe label's text as the screen shows it.
WhereStringNorightWhere the field is from its label.
ActionStringNoreadWhat to do with the field.
TextStringNotype: the text to type; it may come from the vault.
OccurrenceNumberNo1Which appearance of the label, counting in reading order from 1.
GapNumberNo8Pixels between the label and the field.
Field widthNumberNo220Width of the field in pixels.
Field heightNumberNo0Height of the field in pixels; a little more than the label when 0.
LanguageStringNoengTesseract language(s), e.g. eng, deu or eng+fra.
Wait (seconds)NumberNo0Keep looking for the label this many seconds; 0 looks once.

Outputs​

OutputTypeWhat it is
textStringread: the text of the field; otherwise empty.
xNumberCentre x of the field on the screen.
yNumberCentre y of the field on the screen.