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 |
Operating Systems Supported |
Windows NT 4.0 SP3 or later; Windows 98 |
· nInputs [in] Specifies the number of structures in the pInputs array.
· pInputs [in] Pointer to an array of INPUT structures. Each structure represents an event to be inserted into the keyboard or mouse input stream.
· cbSize [in] Specifies the size, in bytes, of an INPUT structure. If cbSize is not the size of an INPUT structure, the function will fail. |
The function returns the number of events that it successfully inserted into the keyboard or mouse input stream. If the function returns zero, the input was already blocked by another thread.
To get extended error information, call GetLastError. |
|