TapKey - Input

From the CreationKit Wiki
Jump to navigation Jump to search

SKSE Member of: Input Script

Minimum required SKSE Version: 1.05.04

Fakes a key press. (This function requires SKSE)

Syntax[edit | edit source]

Function TapKey(Int dxKeycode) global native

Parameters[edit | edit source]

Return Value[edit | edit source]

None

Examples[edit | edit source]

Input.TapKey(42) ; Tap L-Shift

Notes[edit | edit source]

  • 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 Also[edit | edit source]