Sign in to follow this  
Followers 0
patlim4152

Clicking a particular pixel on a picture

8 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Hmm... nevermind, I can just extract the data from the pictures I have in my library, the problem then would be extracting the pixelcolor info from the picture on the web, and also clicking a particular spot on the picture instead of just "$img.click".

Share this post


Link to post
Share on other sites

click a particular spot on the picture

only possible with pixelsearch

8)


NEWHeader1.png

Share this post


Link to post
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)


NEWHeader1.png

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

good luck

8)


NEWHeader1.png

Share this post


Link to post
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
Sign in to follow this  
Followers 0