AllAPI.net – Your #1 source for using API-functions in Visual Basic!
SendInput
The SendInput function synthesizes keystrokes, mouse motions, and button clicks
VB4-32,5,6
Declare Function SendInput Lib “user32.dll" (ByVal nInputs As Long, pInputs As GENERALINPUT, ByVal cbSize As Long) As Long