Jump to content
Sign in to follow this  
Floppy

Click an object with specific coordinates inside a IE window

Recommended Posts

Floppy
Hello,
I want to click an object with specific coordinates inside a IE window.
 
How can I pass coordinates to _IEAction click function?
 
I tried using
MouseClick("left", 70, 280)
and it works, but I don't want to move the mouse cursor.
 
On this forum I've found this piece of code
$ie.document.elementFromPoint(70,280).click

but it doesn't work. No click is sent.

Can someone help me please?

 

Share this post


Link to post
Share on other sites
MikahS

Have a look at this thread: >link


Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites
Floppy

@MikahS: Thank you! The problem is that ControlClick doesn't work (like _IEAction click function) if IE window is hidden. Is there any workaround?

Share this post


Link to post
Share on other sites
MikahS

If it is hidden I don't think using coordinates is going to work, as it is coordinates on the screen, not in a minimized window.

I could be wrong though, so I'll leave it to a more knowledgeable person to help. :)


Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites
Floppy

Ok, thank you MikahS. I wait some expert :)

Share this post


Link to post
Share on other sites
Jos

Maybe your question isn't clear enough. Just post some concrete info and some code what you have tried that doesn't work.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

×