Use the SetCursorPos API.
Change x and y to the x and y position you want the mouse to change to.VB Code:
Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long Private Sub Command1_Click() SetCursor x, y End Sub




Reply With Quote