Image search
Search the specified image in the specified area on the screen, and then return the X and Y coordinates into the variables for the subsequent actions.
You may use "Image search" to retrieve an icon's position and then use "Click mouse button"
to click it. It's very useful when you have to click on the unfixed position icon, button, or other shape.
Click here to show the figure
Parameters
-
Rectangular area for searching Specifies the area for searching.
-
Image file name Specifies an image which is stored in the bitmap format to search.
-
Key color for transparency Specifies a key color. During searching, all image pixels that are
similar to the key color will be ignored.
-
Match exactly Specifies whether to match the search image exactly in the area.
-
Return coordinate if searching is successful Specifies the variable's name which should be populated with the X and Y coordinate value.
Notes:
If the image does not locate in the area, the coordinate value -1, -1 will be returned, and an error will throw.
You may use the instruction "Text search based on image" to retrieve the position of a string appeared on the screen.
|