ForceUIKey
- Parameters
-
key string
- comment
-
Emulates a key press within the game. Only the first character of the string is taken and interpreted as the key. Accepts ASCII digits (0–9) and Latin letters (A–Z, case-insensitive), other characters are ignored.
- note
-
If you register both key down and key up events with
BlzTriggerRegisterPlayerKeyEvent
, only the key down event will fire for keys simulated withForceUIKey
. - note
-
See
ForceUICancel
for limitations and bugs. Most importantly, the outcome is affected by local player's hotkey layout. - patch
-
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
-
nothing
- Source code
-
native ForceUIKey takes string key returns nothing