Question Click in webbrowser at coordinates

wizzy1986

New member
Joined
Oct 4, 2012
Messages
1
Programming Experience
Beginner
Hello.
Some help is appreciated on this
smile.gif

Well im trying to click in a webbrowser at certain coordinates
The webbrowser control is on a new form and on main form i have a button and when i click it i want to simulate a click on the secondary form where the webbrowser is at certain coordinates
On the page loaded in the webbrowser there is an image link and i want to click it on a specified spot.

I've tried to use this code that i've found:

Dim cpoint As New Point(333, 784)
Dim clk As HtmlElement = Form2.WebBrowser1.Document.GetElementFromPoint(cpoint)
clk.InvokeMember("click")

well this is working when the form2 is maximized but is not what i want, this only takes the image element and clicks it but not in the spot of the given coordinates.

The image is an <input> and when you click it, the result of the input depends on what spot is clicked.

There is anyway to do this without moving my mouse cursor and even if form2 is hidden or minimized?

Thank you in advance for help
 
Back
Top