The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
Difference between revisions of "IMAGECLICK"
(→Syntax) |
|||
Line 1: | Line 1: | ||
Sends a [[WINCLICK]] command to the position of the input image specified via the IMAGE attribute. The input image is searched on the currently displayed website using image recognition algorithms. CONFIDENCE specifies how closely the found image must match the input image. A value of 100 means exact match. This command is only available if the Image Recognition Plugin is installed. | Sends a [[WINCLICK]] command to the position of the input image specified via the IMAGE attribute. The input image is searched on the currently displayed website using image recognition algorithms. CONFIDENCE specifies how closely the found image must match the input image. A value of 100 means exact match. This command is only available if the Image Recognition Plugin is installed. | ||
+ | |||
If the image is found then !IMAGEX and !IMAGEY hold the coordinates of where it was found. | If the image is found then !IMAGEX and !IMAGEY hold the coordinates of where it was found. | ||
Revision as of 06:25, 14 January 2009
Sends a WINCLICK command to the position of the input image specified via the IMAGE attribute. The input image is searched on the currently displayed website using image recognition algorithms. CONFIDENCE specifies how closely the found image must match the input image. A value of 100 means exact match. This command is only available if the Image Recognition Plugin is installed.
If the image is found then !IMAGEX and !IMAGEY hold the coordinates of where it was found.
Syntax
IMAGECLICK IMAGE=image_file CONFIDENCE=n [CONTENT=some_content]
Parameters
- IMAGE
- The path to the local location of the image to be searched.
- CONFIDENCE
- The confidence level, i.e. level of similarity between the input and the remote picture. Must between 1 and 100.
- CONTENT
- The value that is sent to the clicked element. (Replace blank spaces by <SP>, like in "Hello<SP>world")
Examples
Example macro: Demo-ImageRecognition