News:

Welcome to our NEW forum! We invite you to sign up today
so it can grow to be a valuable resource to all Toolbox users!

Main Menu

[Tip] Find text on screen using OCR

Started by Paul (Lead Developer), March 01, 2026, 10:53:03 PM

Previous topic - Next topic

Paul (Lead Developer)

Sometimes you may want to know if certain text is showing on screen but the screen is full of data, and a visual search is hard because of a "wall of text" or such. AlomWare Toolbox can help by using OCR to check if your desired text is visible. Here's an action that does this that I use from a hotkey. I've used "AlomWare" as the text to find in step 3, and you can obviously edit this to be your own text.

When I press the hotkey, if my text isn't found then nothing is shown; but if it is found then I get a message confirming it.

(Start)
HOW TO USE: Copy from Start to End, and then paste into an action.
REFERENCE : See an example of pasting at alomware.com/paste.png
0001 Action: Allow failure messages "0"
0002 Action: Match case "0"
0003 Data: Assign "AlomWare"
0004 String: Assign from desktop text ""
0005 Action: Continue if "string$?data$"
0006 Alert: Show a message "Found "data$" on screen."
(End)

As you can see, the above action only searches for "AlomWare". If you want to search for text from a prompt each time, use this action instead:

(Start)
HOW TO USE: Copy from Start to End, and then paste into an action.
REFERENCE : See an example of pasting at alomware.com/paste.png
0001 Action: Allow failure messages "0"
0002 Action: Match case "0"
0003 Alert: Ask for a line of text "What text do you want to find?"
0004 String: Assign from desktop text ""
0005 Action: Continue if "string$?alert$"
0006 Alert: Show a message "Found "alert$" on screen."
(End)