image search, recognization, and click
Forum rules
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
-
- Posts: 10
- Joined: Sat Sep 24, 2005 8:55 pm
image search, recognization, and click
hi
i need a example to do this:
get the 1º image on a site
regnize this image inside 2º image
and click in the xy position, when 1º image have a clone inside the 2º image
eg.
the fist image is a circle, in the second image, have a circle, a pokemon, one lether, and one banana
i need click in circle inside second image in this example
aways the first image change, and i need click in other position on the second image
all images are aleatory names
(sorry the english)
i need a example to do this:
get the 1º image on a site
regnize this image inside 2º image
and click in the xy position, when 1º image have a clone inside the 2º image
eg.
the fist image is a circle, in the second image, have a circle, a pokemon, one lether, and one banana
i need click in circle inside second image in this example
aways the first image change, and i need click in other position on the second image
all images are aleatory names
(sorry the english)
- Tech Support
- Posts: 4948
- Joined: Tue Sep 20, 2005 7:25 pm
- Contact:
Hi,
It would appear that what you are asking for is beyond what iMacros can do at the moment. But it may be possible to automate some of what you are looking for.
The IMAGECLICK command in the Image Recognition Plug-In will do the clicking in the second image for you, provided the image of the circle (or other object) is identical, or IMAGESEARCH could work if it is sufficiently similar.
As for dynamically capturing the images, that would depend whether you could specify suitable extraction parameters. I would need to have a look at the site before I could say whether that was possible. If you could post the site details, with how to access some examples I could take a look.
Daniel Kerr
iOpus Support
It would appear that what you are asking for is beyond what iMacros can do at the moment. But it may be possible to automate some of what you are looking for.
The IMAGECLICK command in the Image Recognition Plug-In will do the clicking in the second image for you, provided the image of the circle (or other object) is identical, or IMAGESEARCH could work if it is sufficiently similar.
As for dynamically capturing the images, that would depend whether you could specify suitable extraction parameters. I would need to have a look at the site before I could say whether that was possible. If you could post the site details, with how to access some examples I could take a look.
Daniel Kerr
iOpus Support
-
- Posts: 10
- Joined: Sat Sep 24, 2005 8:55 pm
a sample of images
image1:
http://br.geocities.com/viashino_bogofinado/6B_107.gif
image2 (image to click the same os image1)
http://br.geocities.com/viashino_bogofi ... sas128.gif
must be winclick
image1:
http://br.geocities.com/viashino_bogofinado/6B_107.gif
image2 (image to click the same os image1)
http://br.geocities.com/viashino_bogofi ... sas128.gif
must be winclick
- Tech Support
- Posts: 4948
- Joined: Tue Sep 20, 2005 7:25 pm
- Contact:
Hi,
WINCLICK is probably not going to help here. Presumably the image1 can appear anywhere in the sequence of images that make up image2. WINCLICK relies on knowing the location to click on beforehand.
IMAGECLICK would work in your example as the images are identical.
For how to download images please see the online user manual:
http://www.iopus.com/imacros/help/image_downlaod.htm
Daniel Kerr
iOpus Support
WINCLICK is probably not going to help here. Presumably the image1 can appear anywhere in the sequence of images that make up image2. WINCLICK relies on knowing the location to click on beforehand.
IMAGECLICK would work in your example as the images are identical.
For how to download images please see the online user manual:
http://www.iopus.com/imacros/help/image_downlaod.htm
Daniel Kerr
iOpus Support
-
- Posts: 10
- Joined: Sat Sep 24, 2005 8:55 pm
- Tech Support
- Posts: 4948
- Joined: Tue Sep 20, 2005 7:25 pm
- Contact:
- Tech Support
- Posts: 4948
- Joined: Tue Sep 20, 2005 7:25 pm
- Contact:
Hi,
For info on how to load images here, please see the following post
http://forum.imacros.net/viewtopic.php?t=1311
Daniel Kerr
iOpus Support
For info on how to load images here, please see the following post
http://forum.imacros.net/viewtopic.php?t=1311
Daniel Kerr
iOpus Support
-
- Posts: 10
- Joined: Sat Sep 24, 2005 8:55 pm
- Tech Support
- Posts: 4948
- Joined: Tue Sep 20, 2005 7:25 pm
- Contact:
Thanks for the details. Imageclick will not work in this example because Imageclick (or Imagesearch) always finds the first occurrence of an image on a page. In this case, that would be the first icon, not the one in the selection. We plan to add a "POS" like function to Imageclick with one of the next updates.
But there is good solution in your case: Instead of using Imageclick you can simply create four small macros that click on the first, 2nd, 3rd and 4th icon respectively. Then you look at the iimPlay return code and check if the click was successful (= hit the right icon). If yes, you start the next macro. If not, you click the next icon.
For example, the code can look like like this.
PS: For information on how to check that you are on the right page (=> Click was successful),
please see http://forum.imacros.net/viewtopic.php?t=757 )
But there is good solution in your case: Instead of using Imageclick you can simply create four small macros that click on the first, 2nd, 3rd and 4th icon respectively. Then you look at the iimPlay return code and check if the click was successful (= hit the right icon). If yes, you start the next macro. If not, you click the next icon.
For example, the code can look like like this.
Code: Select all
i = iim1.iimPlay ("click1")
if i < 0 then i = iim1.iimPlay ("click2")
if i < 0 then i = iim1.iimPlay ("click3")
if i < 0 then i = iim1.iimPlay ("click4")
i = iim1.iimPlay ("NextMacro")
please see http://forum.imacros.net/viewtopic.php?t=757 )