We help IT Professionals succeed at work.

how to move keyboard pointer(cursor)  through vb.net2003 coding without touching keyboard ?

Tamilselvan
Tamilselvan used Ask the Experts™
on
how to move keyboard pointer(cursor)  through vb.net2003 windows application coding without touching keyboard ?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hi,

Use the following line, giving the co-ordinates of your destination in the brackets, and adjusting the windows.forms to set your variables
Windows.Forms.Cursor.Position = New Point(12,12)

M@

Author

Commented:
ok thank you ,
I want api  function  for above purpose.
Ok, take a look at this, it should help you out

M@

Author

Commented:
your answer is wrong.
this coding is for moving mouse. not for mouse

Author

Commented:
sorry
this coding for moving mouse. not for keyboard

Author

Commented:
setcursorpos(x axis value, y axis value)

when i change x axis value it works as perfect.
but if i change y axis , y axis position in the output  did not change.

what is the reason ?

Author

Commented:
my aim is not completed.