keyboard handler

Posted by Winsor on Wed 22 Nov 2017 10:28 AM — 2 posts, 14,394 views.

#0
1) is it possible to handle the input of all keyboards keys and modifiers to output them in a log file?
2) Is it possible to use the Shift modifier with the NUMPAD keys?
Accelerator ("Ctrl+Numpad4", "foo",sendto.world) - work fine
Accelerator ("Shift+Numpad4", "foo",sendto.world) - not work
Accelerator ("LShift+Numpad4", "foo",sendto.world) - some not work
Australia Forum Administrator #1
You can test out the correct names by using the Input menu -> Key Name.

Some experimenting (and Googling) shows that for Shift+Numpad4 to work you must have NumLock disabled.

Then Numpad4 becomes "Left" so this works:


AcceleratorTo ("Shift+Left", "foo", sendto.world) -- send on Shift + Numpad4


Your code incorrectly has a "sendto" argument for Accelerator where that is only supported by AcceleratorTo.