Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Bug reports ➜ Accelerators and command stacking

Accelerators and command stacking

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Ked   Russia  (524 posts)  Bio
Date Sun 17 Sep 2006 06:32 AM (UTC)

Amended on Sun 17 Sep 2006 06:33 AM (UTC) by Ked

Message
I've noticed a strange connection between changing accelerator bindings for key combination and command line stacking. The problem manifests itself when you have a string not containing a stacking charater assigned to an accelerator and then change it to one containing such a character. This only seems to happen when you load accelerators from a script file, and works correctly when you try it from the command window.

For example, loading a file with the following snippet:


Accelerator ("Ctrl+8", "northneast")
--Accelerator ("Ctrl+8", "north;east")


Hitting Ctrl+8 (with a * alias sending to output defined) produces the expected "northneast" in the output window. Then reloading the script with the second line uncommented:


Accelerator ("Ctrl+8", "northneast")
Accelerator ("Ctrl+8", "north;east")


Will continue to give "northneast" until you go into the respective configuration dialog and change the status of the command stacking option (regardless of whether it was disabled or enabled). Then (without reloading the script) Ctrl+8 produces what it should: either "north" followed by "east" on the next line if you've enabled stacking, or "north;east" if you disabled it.

In other words, this is pretty obscure.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 18 Sep 2006 12:36 AM (UTC)
Message
Er, yes, and not the sort of thing I expect people to do . :)

I would expect two things:


  • You load accelerators early on (eg. at world open)

  • You don't change command stack characters frequently.


I know this is not what you are describing, but if you made an alias that did:

north;east

And then changed the command stack character from ";" to something else, then that alias would stop working too.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Ked   Russia  (524 posts)  Bio
Date Reply #2 on Mon 18 Sep 2006 03:49 AM (UTC)
Message
Yeah, this probably isn't something that anyone is likely to ever encounter, as the sequence of coordinated script edits and button clicks kind of guarantees it from happening to anyone sane :)

I just thought it would be a good idea to let you know and document it here in case it turns out to be a sign of more serious trouble at some point.
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.


12,769 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

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