keybd_event Function
Declaration
Declare Sub keybd_event Lib "user32" Alias "keybd_event" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Description of Function
Simulates a keyboard action.
Parameter Type / Description
bVK Byte / Virtual key code to simulate.
bScan Byte / The OEM scan code for the key.
dwFlags Long / Zero or KEYEVENTF_KEYUP
dwExtraInfo Long / Usually not used. Value depends on driver and can be retrieved using GetMesageExtraInfo API function.
|