Click to See Complete Forum and Search --> : Moving mouse cursor with code


Astinite
February 2nd, 2000, 12:55 AM
I am trying to make the mouse cursor move by using code so that the cursor will move by itself at set intervals. Any ideas would be great.

February 2nd, 2000, 02:58 AM
Just Use the following API Call
Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long

And Pass whatever values you want to x and y
ie SetCursorPos 100,200