darkmaster071 Posted January 9, 2011 Share Posted January 9, 2011 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. Link to comment Share on other sites More sharing options...
JohnOne Posted January 10, 2011 Share Posted January 10, 2011 Not according to the documentation, which with autoit is normally very thorough and precise. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted January 10, 2011 Share Posted January 10, 2011 Post a reproducer and a reason to not use ControlClick. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 10, 2011 Share Posted January 10, 2011 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. 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now