Syntax
keybd_event(
bVk: Byte; {virtual-key code}
bScan: Byte; {scan-code}
dwFlags: DWORD; {option flags}
dwExtraInfo: DWORD {additional information about the key}
); {this proceduredo
es not return a value}
Description
The keybd_event function simulates a keystroke. The system generates a WM_KEYUP or WM_KEYDOWN message as if the key were pressed on the keyboard.
Parameters
bVk: The virtual-key code in the range of 1 - 254. See GetKeyState for virtual keycode identifiers.
bScan: The hardware scan code for the key.
dwFlags: Flags identifying keystroke operations.
dwExtraInfo: Specifies an additional 32-bit value associated with the keystroke.