Background for Skyrim SE
Member of the Input script
voidfunctionTapKey(intdxKeycode)NativeGlobal

Description

Wiki Description

Fakes a key press. (This function requires SKSE)

Documentation Comment

taps the specified key


Caveats

CK Wiki - Notes

  • 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.

Parameters

  1. intdxKeycode

    CK Wiki Description

    The Input of the key to tap.


Examples

Input.TapKey(42) ; Tap L-Shift

Auto-Generated Example

int myInt__dxKeycode

Input.TapKey(myInt__dxKeycode)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.