ScriptTap

Visible text

Android OCR automation

ScriptTap OCR reads selected visible text or finds one or every matching line or word in Latin, Chinese, Devanagari, Japanese, or Korean. Scripts can tap recognized matches and use OCR results in typed workflow logic.

What it does

OCR has two focused modes. Read recognizes the selected area's visible text into a String. Find compares a literal or prior String variable with recognized lines or words using Contains, Exact, or Regex matching and an optional case-sensitive comparison.

Find one or find all

Find 1st uses your horizontal and vertical scan directions and a positive Match Index. A new Find 1st setup starts at 1; reopening a saved Find 1st command keeps its existing setting. Find All collects distinct physical word or line matches from one capture in top-to-bottom, then left-to-right order. Max Results caps the returned matches. It starts at 255 and accepts an Integer literal or prior Integer variable from 1 to 4096. An explicit blank or invalid cap leaves the command incomplete.

With Tap Target on, Center taps the selected Find 1st match or each capped Find All result. A fixed target taps its configured point once when a match is found.

Use OCR results

Find 1st independently offers the scalar Found (Boolean), Text (String), X and Y (Integers), and Error (String). Read writes the recognized Text (String) and can also save Success (Boolean) and Error (String).

Set Variables can independently save Count (Integer), Text (String array), X and Y (Integer arrays), and Error (String). Choose This Script Only (LOCAL) or Script Thread (THREAD). Enter one letter for each whole array. Turning Set Variables off keeps the destinations and skips the writes. Process only rows 1 through Count. Count never exceeds Max Results and is 0 when there are no matches. Unused positions through Max Results clear to empty text or zero in each enabled array.

An older saved Find All command with scalar outputs and no Max Results bundle keeps its saved behavior. Choose Use Array Outputs to convert it.

Output toggles retain their configured destinations when turned off. Find 1st/Find All and Matched Center/Fixed Target are true choices; deliberately changing one removes outgoing-only settings when the edit is saved.

OCR values can feed ScriptTap conditions, variables, arrays, Text Transform, translation, files, HTTP, PromptMe, or Display commands.

Test shows the result without tapping or writing variables. In Find All, Test shows Count and a limited preview with text and center coordinates aligned by row.

How ScriptTap handles it

Each OCR command captures only its selected screen area and evaluates it on-device with the chosen text script. All five OCR models ship with ScriptTap, are immediately available after installation, work offline, and create the selected recognizer lazily only when OCR runs. Startup performs no OCR work, and OCR does not add a Play readiness step.

Good uses

  • Visible captions or labels that change over time.
  • Codes, prompts, warnings, or repeated text-driven workflows.
  • Finding and tapping one or every repeated text match in a selected area.
  • Text that needs cleanup, comparison, translation, or overlay display.

Recognition guidance

Select a tight area with readable contrast, stable text, and minimal motion for the clearest recognition. ScriptTap returns the recognized visible text directly to the configured workflow.

Privacy and safety

OCR reads selected visible screen areas on the device. Do not build workflows that collect passwords, payment details, or unrelated private information. See Privacy for current permission disclosures.

Mini-workflow example

Select a caption area, read the visible text, clean spacing, compare it with the previous value, translate it if it changed, and show the translated result in a ScriptTap display overlay.

Get ScriptTap

Related pages