image search, recognization, and click

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.
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
Post Reply
viashino_bogofinado
Posts: 10
Joined: Sat Sep 24, 2005 8:55 pm

image search, recognization, and click

Post by viashino_bogofinado » Wed Jul 12, 2006 4:40 am

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)
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Post by Tech Support » Thu Jul 13, 2006 11:40 am

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
viashino_bogofinado
Posts: 10
Joined: Sat Sep 24, 2005 8:55 pm

Post by viashino_bogofinado » Sun Jul 16, 2006 2:44 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
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Post by Tech Support » Tue Jul 18, 2006 6:26 pm

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
viashino_bogofinado
Posts: 10
Joined: Sat Sep 24, 2005 8:55 pm

Post by viashino_bogofinado » Tue Jul 18, 2006 8:31 pm

and if i dont know the names of images?
and the image1 is the first, image2 second, in same page, imageclick go click in the fist image ... or not ?

how to get fist image to click in second, whatever name of images ?
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Post by Tech Support » Fri Jul 21, 2006 12:53 pm

Hi,

Could you send us a screenshot of the page? Or at least a section of it showing the arrangement of the images.

We would very much like to help you out here, as this is an interesting application of iMacros.

Thanks

Daniel Kerr
iOpus Support
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Post by Tech Support » Fri Jul 21, 2006 12:59 pm

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
viashino_bogofinado
Posts: 10
Joined: Sat Sep 24, 2005 8:55 pm

Post by viashino_bogofinado » Fri Jul 21, 2006 1:45 pm

there the shot, i edit to not show ads of other sites


Image
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Post by Tech Support » Tue Jul 25, 2006 2:25 pm

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.

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")
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 )
mschw74
Posts: 1
Joined: Mon Sep 17, 2007 9:49 am

Post by mschw74 » Fri Sep 21, 2007 11:05 am

Hi,

is this "POS" function now available?

I need this function, because my script should do the following:
- count the occurrences of the same picture in a flash application
- react based on the number of the occurrence

Thank you
Markus Schwarz
Post Reply