OCR Screenshot
OCR Screenshot
Section titled “OCR Screenshot”Type: ocr-screenshot · Package: OCR Activities v1.0.0 · Output: string
Captures the entire screen and recognizes all visible text. Useful for dumping the textual content of a full screen, or as a previous step to searching for something on it.
How it works
Section titled “How it works”Takes a screenshot of the indicated screen (by default the main one) and passes it through OCR. Requires an interactive desktop session.
Required parameters
Section titled “Required parameters”Ninguno.
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
screen | expression | Screen index (base 0). By default 0 (the main one). |
language | expression | Language code: eng (def.) · spa · eng+spa. |
Output
Section titled “Output”Returns a string with all text recognized on the screen.
Example
Section titled “Example”OCR Screenshot language = "spa" → output: textoPantallaIf condition = = contains(textoPantalla, "Sesión expirada") └─ then: ... volver a iniciar sesión ...Related activities
Section titled “Related activities”- OCR Recognize Screen Region — read only one area.
- OCR Find Text — locate text on the screen.