I
INTP56
Hi,
First, VS2008, VB.NET, I have a WebBrowser control on a form.
I can get the position of the mouse, and can correct for the position of the
control. i.e. I can get coordinates relative to the webbrowser's location
(top left corner).
What I want to do is simulate user actions on a low level, i.e. move the
mouse to a specific location, and send a click to whomever is under the mouse
at that time.
I've seen some articles on the web, but I'm new to .NET, and most of the
examples I've seen are based on knowing the name of the control and raising
the click event for that control. I'm looking for something more basic than
that, to simulate moving the mouse to an arbitrary location on the screen,
and telling whomever is active that a left click occured.
Can someone give some example code or point me in the right direction?
Thanks, Bob
First, VS2008, VB.NET, I have a WebBrowser control on a form.
I can get the position of the mouse, and can correct for the position of the
control. i.e. I can get coordinates relative to the webbrowser's location
(top left corner).
What I want to do is simulate user actions on a low level, i.e. move the
mouse to a specific location, and send a click to whomever is under the mouse
at that time.
I've seen some articles on the web, but I'm new to .NET, and most of the
examples I've seen are based on knowing the name of the control and raising
the click event for that control. I'm looking for something more basic than
that, to simulate moving the mouse to an arbitrary location on the screen,
and telling whomever is active that a left click occured.
Can someone give some example code or point me in the right direction?
Thanks, Bob