[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  keyboard handler
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

keyboard handler

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page


Posted by Winsor   (1 post)  [Biography] bio
Date Wed 22 Nov 2017 10:28 AM (UTC)
Message
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
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Thu 23 Nov 2017 05:08 AM (UTC)

Amended on Thu 23 Nov 2017 05:11 AM (UTC) by Nick Gammon

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

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


2,324 views.

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]