how to mouse click on an image on a running IE instance programmatically from windows form app
Posted
by mike_jik
on Stack Overflow
See other posts from Stack Overflow
or by mike_jik
Published on 2009-12-11T21:37:10Z
Indexed on
2010/03/20
19:51 UTC
Read the original article
Hit count: 321
I want to create a windows app that does the following. When a button is clicked,
- Find a running instance of IE (which I was able to get a handle using FindWindow api (user32.dll))
- Send message to windows OS to mouse click on the image in IE. I already know that there is an image on the page. -- this is where I need help!! thanks.
How do I get a image object in html from windows app when I have a handle? I've tried user32.dll (mouse_event(long dwFlags, long dx, long dy, long cButtons, long dwExtraInfo)) but I can't find correct x and y for the image in the page.
© Stack Overflow or respective owner