VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Keyboard SendInput

Robert N.  (2 Submissions)   Windows API Call/Explanation   Visual Basic 5.0   Beginner   Wed 3rd February 2021

The SendInput function synthesizes keystrokes, mouse motions, and button clicks.
Windows NT 4.0 SP3 or later; Windows 98

Inputs
· 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.

Returns
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.

API Declarations
Declare Function SendInput Lib "user32.dll" (ByVal nInputs As Long, pInputs As GENERALINPUT, ByVal cbSize As Long) As Long

Rate Keyboard SendInput (4(4 Vote))
Keyboard SendInput.bas

Keyboard SendInput Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters