Move/Click Mouse Programmatically in WebBrowser control

  • Thread starter Thread starter INTP56
  • Start date Start date
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
 
Hi Bob, I am new to developing a similar kinda program that you are asking for. Can you help me in telling what all methods and classes have you used to get the coordinates of your web based program.

Thanks! Uday



INTP56 wrote:

Move/Click Mouse Programmatically in WebBrowser control
16-Sep-09

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 th
control. i.e. I can get coordinates relative to the webbrowser's locatio
(top left corner)

What I want to do is simulate user actions on a low level, i.e. move th
mouse to a specific location, and send a click to whomever is under the mous
at that time

I have seen some articles on the web, but I am new to .NET, and most of th
examples I have seen are based on knowing the name of the control and raisin
the click event for that control. I am looking for something more basic tha
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

Previous Posts In This Thread:

Move/Click Mouse Programmatically in WebBrowser control
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 th
control. i.e. I can get coordinates relative to the webbrowser's locatio
(top left corner)

What I want to do is simulate user actions on a low level, i.e. move th
mouse to a specific location, and send a click to whomever is under the mous
at that time

I have seen some articles on the web, but I am new to .NET, and most of th
examples I have seen are based on knowing the name of the control and raisin
the click event for that control. I am looking for something more basic tha
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


Submitted via EggHeadCafe - Software Developer Portal of Choice
Free Online Courses Available for Eggheadcafe.com Users
http://www.eggheadcafe.com/tutorial...8-fc3cf6855293/free-online-courses-avail.aspx
 
Back
Top