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 ➜ General ➜ Accelerator Conflicts?

Accelerator Conflicts?

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


Posted by MyrilithX   (6 posts)  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?
Top

Posted by Ked   Russia  (524 posts)  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.
Top

Posted by MyrilithX   (6 posts)  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.
Top

Posted by MyrilithX   (6 posts)  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?
Top

Posted by Ked   Russia  (524 posts)  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?
Top

Posted by MyrilithX   (6 posts)  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.
Top

Posted by MyrilithX   (6 posts)  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?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  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
Top

Posted by Nick Gammon   Australia  (23,133 posts)  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
Top

Posted by MyrilithX   (6 posts)  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.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  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
Top

Posted by Random Person   (1 post)  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.
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.


33,063 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.