External Link: Virtual-Key Codes
Only decimal values are accepted in command, hex values are not supported.
E.G: :K_SHIFT 16 SHIFT key ยป Tibia.SendKey(16)
Symbolic constant | Decimal value | Mouse or keyboard equivalent |
---|---|---|
05-07 | Undefined | |
:K_BACK | 08 | BACKSPACE key |
:K_TAB | 09 | TAB key |
10-11 | Undefined | |
:K_CLEAR | 12 | CLEAR key |
:K_RETURN | 13 | ENTER key |
14-15 | Undefined | |
:K_SHIFT | 16 | SHIFT key |
:K_CONTROL | 17 | CTRL key |
:K_MENU | 18 | ALT key |
:K_PAUSE | 19 | PAUSE key |
:K_CAPITAL | 20 | CAPS LOCK key |
26 | Undefined | |
:K_ESCAPE | 27 | ESC key |
:K_SPACE | 32 | SPACEBAR |
:K_PRIOR | 33 | PAGE UP key |
:K_NEXT | 34 | PAGE DOWN key |
:K_END | 35 | END key |
:K_HOME | 36 | HOME key |
:K_LEFT | 37 | LEFT ARROW key |
:K_UP | 38 | UP ARROW key |
:K_RIGHT | 39 | RIGHT ARROW key |
:K_DOWN | 40 | DOWN ARROW key |
:K_SELECT | 41 | SELECT key |
42 | Specific to original equipment manufacturer | |
:K_EXECUTE | 43 | EXECUTE key |
:K_SNAPSHOT | 44 | PRINT SCREEN key |
:K_INSERT | 45 | INS key |
:K_DELETE | 46 | DEL key |
:K_HELP | 47 | HELP key |
48 | 0 key | |
49 | 1 key | |
50 | 2 key | |
51 | 3 key | |
52 | 4 key | |
53 | 5 key | |
54 | 6 key | |
55 | 7 key | |
56 | 8 key | |
57 | 9 key | |
58-64 | Undefined | |
65 | A key | |
66 | B key | |
67 | C key | |
68 | D key | |
69 | E key | |
70 | F key | |
71 | G key | |
72 | H key | |
73 | I key | |
74 | J key | |
75 | K key | |
76 | L key | |
77 | M key | |
78 | N key | |
79 | O key | |
80 | P key | |
81 | Q key | |
82 | R key | |
83 | S key | |
84 | T key | |
85 | U key | |
86 | V key | |
87 | W key | |
88 | X key | |
89 | Y key | |
90 | Z key | |
:K_LWIN | 91 | Left Windows key on a Microsoft Natural Keyboard |
:K_RWIN | 92 | Right Windows key on a Microsoft Natural Keyboard |
:K_APPS | 93 | Applications key on a Microsoft Natural Keyboard |
94 | Undefined | |
:K_SLEEP | 95 | SLEEP Key |
:K_NUMPAD0 | 96 | Numeric keypad 0 key |
:K_NUMPAD1 | 97 | Numeric keypad 1 key |
:K_NUMPAD2 | 98 | Numeric keypad 2 key |
:K_NUMPAD3 | 99 | Numeric keypad 3 key |
:K_NUMPAD4 | 100 | Numeric keypad 4 key |
:K_NUMPAD5 | 101 | Numeric keypad 5 key |
:K_NUMPAD6 | 102 | Numeric keypad 6 key |
:K_NUMPAD7 | 103 | Numeric keypad 7 key |
:K_NUMPAD8 | 104 | Numeric keypad 8 key |
:K_NUMPAD9 | 105 | Numeric keypad 9 key |
:K_MULTIPLY | 106 | Multiply key |
:K_ADD | 107 | Add key |
:K_SEPARATOR | 108 | Separator key |
:K_SUBTRACT | 109 | Subtract key |
:K_DECIMAL | 110 | Decimal key |
:K_DIVIDE | 111 | Divide key |
:K_F1 | 112 | F1 key |
:K_F2 | 113 | F2 key |
:K_F3 | 114 | F3 key |
:K_F4 | 115 | F4 key |
:K_F5 | 116 | F5 key |
:K_F6 | 117 | F6 key |
:K_F7 | 118 | F7 key |
:K_F8 | 119 | F8 key |
:K_F9 | 120 | F9 key |
:K_F10 | 121 | F10 key |
:K_F11 | 122 | F11 key |
:K_F12 | 123 | F12 key |
:K_F13 | 124 | F13 key |
:K_F14 | 125 | F14 key |
:K_F15 | 126 | F15 key |
:K_F16 | 127 | F16 key |
:K_F17 | 128 | F17 key |
:K_F18 | 129 | F18 key |
:K_F19 | 130 | F19 key |
:K_F20 | 131 | F20 key |
:K_F21 | 132 | F21 key |
:K_F22 | 133 | F22 key (PPC only) Key used to lock device |
:K_F23 | 134 | F23 key |
:K_F24 | 135 | F24 key |
136-143 | Unassigned | |
:K_NUMLOCK | 144 | NUM LOCK key |
:K_SCROLL | 145 | SCROLL LOCK key |
:K_LSHIFT | 160 | Left SHIFT |
:K_RSHIFT | 161 | Right SHIFT |
:K_LCONTROL | 162 | Left CTRL |
:K_RCONTROL | 163 | Right CTRL |
:K_LMENU | 164 | Left ALT |
:K_RMENU | 165 | Right ALT |