We help IT Professionals succeed at work.

how to move mouse pointer through coding without touching mouse in .net2003?

Tamilselvan
Tamilselvan used Ask the Experts™
on
how to move mouse pointer, clicking left button, clicking right button , moving mouse wheel   through vb.net2003 windows application  coding without touching mouse.
what is manual coding ?
what is api function ?
 
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
I’m a software engineer, tech enthusiast and UI/UX lover.
Commented:
to perform mouse move try this
Windows.Forms.Cursor.Position = New Point(x,y);

'where x is the x axis and y is the y axis where the mouse will be moved to.
Mike TomlinsonHigh School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
Top Expert 2009
Commented:
You can move the mouse with the built-in .Net Cursor.Position():
http://msdn.microsoft.com/en-us/library/system.windows.forms.cursor.position.aspx

    Cursor.Position = New Point(100, 200)

To click you can use the older mouse_event() API or the newer SendInput() API:
http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_21443641.html#14127768
http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_21848631.html#16670106