OCR Capture Command Reference (Screen Region to Variable)
Desktop ModeBrowser ModeRunMacro 3.5+
OCR Capture reads text in a screen region or a Browser Mode screenshot with Windows OCR. It can find target text, act at its position, and branch on the result; accuracy depends on image quality and OCR availability.
Dialog & quick setup

- Add the Image › OCR Capture command.
- Draw the scan region on screen (tighter around the text is more accurate).
- (Optional) enter the target text to find.
- Choose the found action (none / move / click / double-click / right-click) and set IF/ELSE Labels. Save.
Options reference
Modes & when to use
Desktop Mode
Captures a desktop screen region by coordinates.
Browser Mode
Uses a screenshot from the selected CDP target.
Best for
- Read a balance, price, or OTP shown as image/uncopyable text.
- Find a label/button by its text and click it.
- Check whether the screen contains a certain text to branch.
Use an alternative when
- The text is directly available through Smart HTML or CDP Copy Text.
- The image is blurred, text is too small, or contrast is poor.
- You require exact sensitive data without a separate verification step.
Before you run
- Windows OCR/winsdk is available on the runner machine.
- The scan region surrounds the target text with sufficient contrast.
- For Browser Mode, Chrome/CDP is connected and the target to capture is active.
Example workflow
Example: click a button by its text
- OCR Capture on the region with the button, target text = "Confirm".
- Found action = Click.
- Set an ELSE Label to branch when the text is not found.
Expected result: RunMacro locates the target text in the scan region, performs the configured action at its position (move/click/...), and follows the IF (found) or ELSE (not found) branch. It does not store the recognized text into a variable.
Tips & limitations
OCR requires Windows OCR (winsdk) to be available; if missing, the command is disabled and follows the ELSE branch. Clear, high-contrast text reads more accurately.
- OCR can confuse similar characters and does not guarantee exact recognition.
- When the OCR provider is unavailable, recognition cannot run and the command follows the ELSE branch.
- DPI, capture-region, or CDP-target changes can alter the result.
Applies to RunMacro 3.5+ · Desktop Mode & Browser Mode · Windows 10/11
