TapKey - Input

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

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.

See AlsoEdit