by Imtiaz Ahmed (2 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sat 4th May 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Drift mouse even when your hands are not on it.
API Declarations
Private Const MOUSEEVENTF_MOVE = &H1 ' mouse move
'to 1000 and place this code in the timer event
Private Sub Timer1_Timer()
'API call to generate the mouse move
'increase the 2nd and 3rd parameters to increase the
'movement
Call mouse_event(MOUSEEVENTF_MOVE, 1, 1, 0, 0)
End Sub