Match image
Match image activity is used for finding coordinates of specified image in screen.
| * File name | File name with path. |
| * Base64 | Base64 string of image file. |
| X-coordinate | If it is desired to limit the image to be searched on the screen within a certain area; this field must be filled in, along with the Y-coordinate, Height, and Width fields. |
| Y-coordinate | If it is desired to limit the image to be searched on the screen within a certain area; this field must be filled in, along with the X-coordinate, Height, and Width fields. |
| Width | If it is desired to limit the image to be searched on the screen within a certain area; this field must be filled in, along with the X-coordinate, Y-coordinate and Height fields. |
| *Height* | If it is desired to limit the image to be searched on the screen within a certain area; This field must be filled in, along with the X-coordinate, Y-coordinate and Width fields. |
| Retry count | The number of tries until the image is found, could be any numeric value. |
| Match score | Images are matched if their similarity percentage is higher than the match score. |
| *Return x-position | Final x-position, variable name defined to assign the x-coordinate found. |
| *Return y-position | Final y-position, variable name defined to assign the y-coordinate found. |
Note: * Fields selected with are required, others are optional.
File name example
You can use the File name as shown in the example.
C:\Temp\test.jpg
This field must be left blank if the process is done with Base64 field.
Base64 example
You can use the Base64 as shown in the example.
iVBORw0KGgoAAAANSUhEUgAAAGYAAAAsCAYAAACXHM1oAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAE
This field must be left blank if the process is done with File name field.
X-coordinate example
You can use the X-coordinate as shown in the example.
700
If you want to limit the specified image in a certain area in screen, this field must be filled along with Y-coordinate, height and width.
Y-coordinate example
You can use the Y-coordinate as shown in the example.
400
If you want to limit the specified image in a certain area in screen, this field must be filled along with X-coordinate, height and width.
Width example
You can use the Width as shown in the example.
100
If you want to limit the specified image in a certain area in screen, this field must be filled along with X-coordinate, Y-coordinate, and height.
Height example
You can use the Height as shown in the example.
50
If you want to limit the specified image in a certain area in screen, this field must be filled along with X-coordinate, Y-coordinate, and width.
Retry count example
You can use the Retry count* *as shown in the example.
3
Match score example
You can use the Match score* *as shown in the example.
0.80
Return x-position example
You can use the Return x-position* *as shown in the example.
xPositionValue
Return y-position example
You can use the Return x-position* *as shown in the example.
yPositionValue
Note
You can use Return x-position and Return y-position variables in Mouse activity in Keyboard & Mouse Operations.
Image can be converted to Base64 in different sites.
The coordinates of file whose path is specified in File name field are found on screen and returned to xPositionValue and yPositionValue variables. Using these returned variables in Mouse activity, the process of clicking on these coordinates can be done.
Note
Gif is an unsupported extension for Match Image activity.
Caution
The values for Height and Width must be an integer.
