[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]  General
. . -> [Subject]  Accelerator Conflicts?
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Accelerator Conflicts?

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


Posted by MyrilithX   (6 posts)  [Biography] bio
Date Sat 16 Sep 2006 07:33 PM (UTC)
Message
I've been working with some basic accelerators for a while now, and they're being... uncooperative. Since I'm working on a laptop, I don't really have a NumPad to use for my basic directions. Instead, I set things (using scripted accelerators) like CTRL+8 to north, CTRL+K to south, etc.

The problem is that I can't use accelerators for any key combination that has another hotkey. For example, CTRL+I sets an indent on the command line instead of executing "look," like my accelerators tells me it -should-. I know that my coding is correct, because combinations that don't have other associations work just fine.

Is there a setting somewhere that's conflicting with my accelerators, or what?
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Reply #1 on Sun 17 Sep 2006 02:29 AM (UTC)
Message
I think what is happening is that you first set the CTRL+I accelerator and then unset it somewhere with Accelerator("Ctrl+i" ,""). By default, CTRL+I in Mushclient opens the Immediate execution window, and to get it to indent the command line you'd need to do what I described.

So try looking for some place where that accelerator is reset.

And Nick: I think resetting an accelerator doesn't remove it from AcceleratorList() for some reason.
[Go to top] top

Posted by MyrilithX   (6 posts)  [Biography] bio
Date Reply #2 on Sun 17 Sep 2006 04:54 AM (UTC)
Message
I understand what you mean, but... I don't have a long enough script for any accelerators to be reset. Seriously, This is the only script (I'm trying out Lua, BTW) I have:

Accelerator ("Ctrl+8", "north")
Accelerator ("Ctrl+9", "northeast")
Accelerator ("Ctrl+O", "east")
Accelerator ("Ctrl+L", "southeast")
Accelerator ("Ctrl+K", "south")
Accelerator ("Ctrl+J", "southwest")
Accelerator ("Ctrl+U", "west")
Accelerator ("Ctrl+7", "northwest")

Accelerator ("Ctrl+Alt+7", "up")
Accelerator ("Ctrl+Alt+U", "down")
Accelerator ("Ctrl+Alt+9", "in")
Accelerator ("Ctrl+Alt+O", "out")


That's it. Nothing after that. There's no chance for it to be reset, unless it's embedded somewhere besides the script. And if I put in a test macro that sends a note or something, it works fine as long as it's not for a key combination that has a default usage.
[Go to top] top

Posted by MyrilithX   (6 posts)  [Biography] bio
Date Reply #3 on Sun 17 Sep 2006 05:39 AM (UTC)
Message
Hm, I've made a new discovery, after a little bit of fiddling. Whichever accelerator is the last one listed works, but the others don't. So if I delete a few lines of accelerators, the bottom one will work. This is true for any key combination, whether it has a default or not.

Is there an endline character or something that I'm leaving out? Why is it only the last line of the script that works?
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Reply #4 on Sun 17 Sep 2006 05:58 AM (UTC)
Message
You mean that in the list you posted only Accelerator ("Ctrl+Alt+O", "out") works?
[Go to top] top

Posted by MyrilithX   (6 posts)  [Biography] bio
Date Reply #5 on Sun 17 Sep 2006 02:18 PM (UTC)
Message
Yeah, that's exactly what I mean. And if I deleted that line, then the "in" keybinding would work. And if I deleted the bottom set, then the "northwest" one would work.
[Go to top] top

Posted by MyrilithX   (6 posts)  [Biography] bio
Date Reply #6 on Sun 17 Sep 2006 11:01 PM (UTC)
Message
Okay, I keep exploring options and trying to figure this out, and here's another piece of information that might help someone help me. ^.^

This problem seems to be a difference between versions. I'm running 3.78, but I had a working script in version 3.70 a few months back. I imported the old script to the new version, and I'm having exactly the same problem. Is there a significant difference between these two versions that would cause a problem like the one I'm having?
[Go to top] top

Posted by Nick Gammon   Australia  (21,404 posts)  [Biography] bio   Forum Administrator
Date Reply #7 on Mon 18 Sep 2006 12:59 AM (UTC)
Message
There was a change in 3.75 to allow empty accelerators to reset back to the default behaviour.

However I tested your script above and all of the accelerators worked, not just the last one. This was in version 3.80, but accelerators were not changed since 3.75 that I can recall (nor in the release notes).

- Nick Gammon

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

Posted by Nick Gammon   Australia  (21,404 posts)  [Biography] bio   Forum Administrator
Date Reply #8 on Mon 18 Sep 2006 01:07 AM (UTC)
Message
Quote:

For example, CTRL+I sets an indent on the command line instead of executing "look,"


The default behaviour for Ctrl+I is to open the immediate window, not indent the command line.

Anyway, I tested with setting an accelerator for Ctrl+I and that worked fine.

- Nick Gammon

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

Posted by MyrilithX   (6 posts)  [Biography] bio
Date Reply #9 on Mon 18 Sep 2006 03:58 AM (UTC)
Message
That's bizarre. I definitely trust you, Nick, and thanks for checking into it. I'll leave this alone for now, unless I come across an explanation or something. Hm.
[Go to top] top

Posted by Nick Gammon   Australia  (21,404 posts)  [Biography] bio   Forum Administrator
Date Reply #10 on Mon 18 Sep 2006 11:10 PM (UTC)
Message
Thanks for alerting me to a possible problem. I actually tested it on a laptop too. :)

Possibly there are some laptop keyboard remapping functions that are interfering with MUSHclient?

- Nick Gammon

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

Posted by Random Person   (1 post)  [Biography] bio
Date Reply #11 on Wed 16 May 2007 06:19 PM (UTC)
Message
According to this thread http://www.gammon.com.au/forum/bbshowpost.php?id=5287 the problem might be windows ME. Also on my Win98 computer, only the last accelerator works.
[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.


7,816 views.

It is now over 60 days since the last post. This thread is closed.     [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]