AllAPI.net – Your #1 source for using API-functions in Visual Basic!
mouse_event
The mouse_event function synthesizes mouse motion and button clicks.Windows NT only: This function has been superseded. Use MouseEventEx instead.
VB4-32,5,6
Declare Sub mouse_event Lib “user32″ Alias “mouse_event" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)