TapKey - Input
Revision as of 08:51, 22 December 2019 by imported>Pickysaurus (→Notes: Note about CTDs for invalid key presses)
SKSE Member of: Input Script
Minimum required SKSE Version: 1.05.04
Fakes a key press. (This function requires SKSE)
SyntaxEdit
Function TapKey(Int dxKeycode) global native
ParametersEdit
- dxKeycode : The DXScanCode of the key to tap.
Return ValueEdit
None
ExamplesEdit
Input.TapKey(42) ; Tap L-Shift
NotesEdit
- If an invalid integer (such as -1) is passed, it will cause a crash to desktop. You should use Input.GetMappedKey() to ensure the value is valid before calling it.