Find text on screen Version 9 (Python)

Action group: Vision


Description

The action finds the text on the screen and gets its coordinates. 

Action icon

Parameters

Input parameters

Text - text to find. 

Language of the text - expected language of the text to find. 

Timeout (ms) - the time in milliseconds during which the appearance of the specified text will be expected. 

Search mode - search mode: by row to match or by word match. 

Area - If the field is filled in, the search is performed only within the specified area 

Output parameters

Result - variable which the the collection of points will be written into.

Settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
TextText to find.Robin.String
Yes
Language of the textExpected languages of the text to findRobin.String
Yes
Timeout (ms)The time in milliseconds during which the appearance of the specified text will be expected.Robin.Numeric
No
Search modeSearch mode: by row match or by word matchRobin.String
No
AreaIf param set, action would recognize text in selected areaRobin.RectangleL ocation
No
Results
ResultReturns collection of pointsRobin.Collection

Special conditions of use

None. 

Parameters of use

Task

There is a text on the screen, it is necessary to recognize "Active sprints" (by word match) and return a collection of coordinate points found on the screen according to the given text. Then, get the value by index from the collection. 

Solution

Use the "Find text on screen" action. 

Implementation

  1. Assemble a robot scheme with the actions: 


  2. Set the "Find text on screen" action parameters. 


  3. Set the "Get index of element" action parameters. 


  4. Run the robot by clicking "Start" in the to panel. 

Result 

The program robot completed successfully. The collection of coordinate points found on screen according to the given text was returned. Center coordinates are returned.

 

  • Нет меток