Link to home
Start Free TrialLog in
Avatar of Tamilselvan
TamilselvanFlag for India

asked on

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

how to move keyboard pointer(cursor)  through vb.net2003 windows application coding without touching keyboard ?
Avatar of mattclarified
mattclarified
Flag of United Kingdom of Great Britain and Northern Ireland image

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@
Avatar of Tamilselvan

ASKER

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

M@

your answer is wrong.
this coding is for moving mouse. not for mouse
sorry
this coding for moving mouse. not for keyboard
ASKER CERTIFIED SOLUTION
Avatar of mattclarified
mattclarified
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 ?
my aim is not completed.