Find text on screen
Find where a piece of text appears on the screen.
Command in the Terminal emulator toolkit · id ooa.terminal/search_field · 5 inputs (1 required), 5 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Text | String | Yes | Text to look for. | |
| Occurrence | Number | No | 1 | Which match to return when the text appears more than once. |
| Case sensitive | Boolean | No | true | Match upper and lower case exactly. |
| Session | String | No | terminal | Session name. |
| Whole field | Boolean | No | false | Only match a field whose whole (trimmed) text equals the search text. |
Outputs
| Output | Type | What it is |
|---|---|---|
| found | Boolean | True when the text was found. |
| row | Number | Row of the first character (0 when not found). |
| column | Number | Column of the first character (0 when not found). |
| field_index | Number | Number of the field holding the match, as in Get all fields (0 when not found or the screen has no fields). |
| count | Number | How many times the text appears on the screen. |