[,
],
',
\.
And how display symbol
;in hudtxt command
edited 2×, last 05.06.21 09:35:15 am
Scripts
Keyboards and key hook
Keyboards and key hook
1

[,
],
',
\.
;in hudtxt command
addbind
bind "[" "!say '['"
addhook("say","hee")
function hee(id,txt)
if (txt == "!say '['") then
	-- bring the action
end
end
DC: So, what about user input, how allow input symbol ;or should I prohibit it?
Bowlinghead: A rather impractical method.
hyesosivixd: You just can't use other inputs than:
Numeric keys: "0", "1" ... "9"
Alphabetic keys: "A", "B", ... "Z"
Function keys: "F1", "F2", ... "F12"
Mouse: "mouse1" (left click), "mouse2" (right click), "mouse3" (middle click), "mwheelup", "mwheeldown" (scrolling)
Special/Modifier keys: "leftshift", "rightshift", "leftctrl", "rightctrl", "leftalt", "rightalt", "leftsys", "rightsys"
Arrow keys: "leftarrow", "rightarrow", "uparrow", "downarrow"
Others: "backspace", "tab", "clear", "enter", "escape", "space", "pgup", "pgdn", "end", "home", "select", "print", "execute", "screen", "ins", "del"
Numpad/keypad: Same as above with "kp_" prefix. e.g. "kp_leftarrow", "kp_home", "kp_ins" etc., "kp_5" for center button
1
