CodeItBetter Programming Another VB Programming Blog

How to Set Mouse Cursor position

Posted on January 5, 2009
1
2
3
4
5
6
7
8
9
10
'System & API - How to Set Mouse Cursor position

Option Explicit
 
Declare Function SetCursorPos& Lib "user32" (ByVal X As Long, ByVal Y As Long)
 
Private Sub Main()
    'Replace the two numbers below (500,600) with the X and Y position of the mouse cursor
    SetCursorPos 500, 600
End Sub
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.