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 parameters | Input parameter type | Description |
|---|---|---|
| Recognition Precision | enum | Standard or High Accuracy. Use High Accuracy when recognition quality is more important than speed |
| Search Scope | enum | Entire Screen, Active Window, Specified Window |
| Window Object | WindowInstance | Required when Search Scope is Specified Window |
| Text to Find | str | |
| Exists | enum | Exists, 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: