Jump to content
Sign in to follow this  
darkmaster071

_IEImgClick coordinates possible?

Recommended Posts

darkmaster071

Ive come across a situation where i need to use _IEImgClick function and click on a certain random coordinate on that picture. Also i cant use ControlClick for what i need. I examined the function and found that it clicks the image using this: $img.click

So can someone tell me what this .click even is, and if it can be assigned additional coordinates on that image? Help is greatly appreciated. Thanks.

Share this post


Link to post
Share on other sites
PsaltyDS

The $img.click is just using the COM method provided by IE for an IMG element object. The .click method does not accept any parameters, so passing X/Y coordinates is out of the question by that means. You could get the screen coordinates with _IEPropertyGet() and "ScreenX"/"ScreenY" then MouseClick().

Why would the click coordinates matter, though? If this is about a game, read the sticky and drop the topic.

:x


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.