Named Key Strokes

The thing that struck me the most odd about the VASSAL programming language is that function calls are implemented via keystrokes. I’m clearly not the only one who thought this was strange, as I see support for “Named Key Strokes” in the code implemented by a gentleman named Brent Easton.

The thing that’s not clear to me is how the end-user is to enter a Named Key Stroke. If I type a name, the field just keeps cycling through each key that I press. How do you enter a name for a named keystroke? I had a quick look through NamedHotKeyConfigurer.keyPressed() and I see the support for it there, but I can’t figure out how to get it to work…

Thanks,
Ken

The End user is not supposed to be able to enter a Named keystroke

The purpose of Named keystrokes was for hidden keycommands such as those
silently activated by Trigger Action that the user would not see nor could
accidentally press by mistake on their keyboard causing unintended consequences


From: fil512 ken.stevens@sympatico.ca
To: messages@vassalengine.org
Sent: Thu, July 29, 2010 10:42:40 AM
Subject: [messages] [Developers] Named Key Strokes

The thing that struck me the most odd about the VASSAL programming
language is that function calls are implemented via keystrokes.� I’m
clearly not the only one who thought this was strange, as I see support
for “Named Key Strokes” in the code implemented by a gentleman named
Brent Easton.

The thing that’s not clear to me is how the end-user is to enter a Named
Key Stroke.� If I type a name, the field just keeps cycling through each
key that I press.� How do you enter a name for a named keystroke?� I had
a quick look through NamedHotKeyConfigurer.keyPressed() and I see the
support for it there, but I can’t figure out how to get it to work…

Thanks,
Ken


Read this topic online here:
https://forum.vassalengine.org/t/named-key-strokes/3135/1

I believe you are referring to a feature that will be present in the next
major release. This is not possible in the current release, however.

  • M.

On 29 July 2010 12:42, fil512 ken.stevens@sympatico.ca wrote:

The thing that struck me the most odd about the VASSAL programming
language is that function calls are implemented via keystrokes. I’m
clearly not the only one who thought this was strange, as I see support
for “Named Key Strokes” in the code implemented by a gentleman named
Brent Easton.

The thing that’s not clear to me is how the end-user is to enter a Named
Key Stroke. If I type a name, the field just keeps cycling through each
key that I press. How do you enter a name for a named keystroke? I had
a quick look through NamedHotKeyConfigurer.keyPressed() and I see the
support for it there, but I can’t figure out how to get it to work…

Thanks,
Ken

I believe you are referring to a feature that will be present in the next major release.� This is not possible in the current release, however.

- M.

On 29 July 2010 12:42, fil512 <ken.stevens@sympatico.ca> wrote:

The thing that struck me the most odd about the VASSAL programming
language is that function calls are implemented via keystrokes. �I'm
clearly not the only one who thought this was strange, as I see support
for "Named Key Strokes" in the code implemented by a gentleman named
Brent Easton.

The thing that's not clear to me is how the end-user is to enter a Named
Key Stroke. �If I type a name, the field just keeps cycling through each
key that I press. �How do you enter a name for a named keystroke? �I had
a quick look through NamedHotKeyConfigurer.keyPressed() and I see the
support for it there, but I can't figure out how to get it to work...

Thanks,
Ken