Skip to main content

If Text Exists (OCR)

Command description

Checks whether specified text exists on the Entire Screen, in the Active Window, or in a Specified Window. The indented child commands run when the selected Exists or Does Not Exist condition is met.

Command Input Parameters

input parametersInput parameter typeDescription
Recognition PrecisionenumStandard or High Accuracy. Use High Accuracy when recognition quality is more important than speed
Search ScopeenumEntire Screen, Active Window, Specified Window
Window ObjectWindowInstanceRequired when Search Scope is Specified Window
Text to Findstr
ExistsenumExists, Does Not Exist

Command Output Parameters

None

Type definition reference

tip
  • This command sends the image to the Runavelo server for text recognition. Each recognition costs CNY 0.10, and new users receive 30 free recognitions. Recharge your account if the balance is insufficient.
  • Prefer element capture when the target can be identified as an element. OCR accuracy is not guaranteed to be 100%.

Example

Determine whether a specified window contains particular text: