Help on how to launch Macros based on ocr=text results (If A then script A, If B then macro B)

Hi everyone,

I am new to UI.Vision, and am having fun here. I would like to run a macro that ends with finding text using ocr=text or Xclick, and then starts one of 2 other macros based on the result.

If it finds text xyz it runs macro xyz
On the other hand, if it finds text abc then it runs macro abc.
Else it would stop.

Finding text through OCR on the screen is easiest for me but I can work with other “select” options.

Thanks in advance for your help.

Hi, to find text with OCR use OCRSearch | text | var and then check its result:

If var = 0 => no text found, If var > 0 then one or more times the text has been found.