Click to See Complete Forum and Search --> : moving a mouse to a specified location
bob323
Sep 19th, 2000, 11:39 AM
I here this is a pretty good forum so I'll throw you all of the though questions that I've been fighting with!
Any idea how to make the mouse move to a specified location on the screen?
oetje
Sep 19th, 2000, 12:46 PM
Try this: http://www.vbapi.com/ref/m/mouse_event.html
lokk at this site there is the answer
http://www.vbapi.com/ref/m/mouse_event.html
Use the SetCurosrPos API.
Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long
Private Sub Command1_Click()
'Move the cursor to 100,100
SetCursorPos 100, 100
End Sub
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.