Jump to content

Clicking a particular pixel on a picture


Recommended Posts

Hello,

I was looking at the famous IE.au3 file and came across the _IEClickImg function. There is this line "$result = $img.click" which simulates the mouse click. $img being of type returned by "$doc.images". I was wondering whether anyone knows of where to find the documentation for $doc.images? I am trying to see if it is possible to simulate a mouse-click something like $img.click(24,56) where "24,56" is the pixel I click within the picture.

Thanks

Link to comment
Share on other sites

no... you cannot combine those two as yet

you can use pixelsearch and click on a specific color...

however, pixelsearch uses mouse coordinates

or

use IE.au3 to click an "image" not a pixel

the images are only on that web-page there is no "library" of images

see the IE.au3 Builder in my signature

8)

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

no... you cannot combine those two as yet

you can use pixelsearch and click on a specific color...

however, pixelsearch uses mouse coordinates

or

use IE.au3 to click an "image" not a pixel

the images are only on that web-page there is no "library" of images

see the IE.au3 Builder in my signature

8)

That's the tough part which I'm trying to figure out, what I need is this - match the picture on the website with a library of pictures which I have, then depending on the result of that, click a particular spot on the picture on the webpage. I thought about it for days before figuring out what I thought was the hard part, how to match images, now to code it in.

Link to comment
Share on other sites

there is a "PERFECT" example/demo of pixelsearch in

"Welcome to AutoIt 1-2-3"

take a look at it

8)

Haha, thanks... If that's the case, is there anyway I can "hack" the incoming HTML code to add in stuff? Like say I look for a particular part of the code and add in my own, so that I can create a signature of pixel color combination for pixel search to work? (Hope you understand what I mean, lol)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...