Skip to main content

Wait for Text (OCR)

Command description

Waits for specified text to appear or disappear on the Entire Screen, in the Active Window, or in a Specified Window.

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
Wait DurationnumberMaximum time to wait, in seconds

Command Output Parameters

Output parametersOutput parameter typeDescription
Wait Resultbool

Waiting for result description

Current statusConditionsreturn value
Text existsExistsReturn True immediately
Text existsDoes Not ExistReturns True when the text disappears, or False if it still exists when the timeout expires
Text does not existDoes Not ExistReturns True immediately
Text does not existExistsReturns True when the text appears, or False if it is still absent when the timeout expires

Type definition reference

tip
  • This command may send multiple recognition requests to the Runavelo server. Each request 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