 |
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Fri Jun 13, 2008 3:47 am
[2.27] Alt Key Macros |
One distraction/nuisance for me is the Alt key switching focus to the menu. For a while I thought there must be a bug that sometimes it would switch focus to the menu and other times it would not. Finally I think I've figured out why it was random for me.
If I press:
[Press and Hold Alt] [Press and Release Key] [Release Alt]
Then it operates as desired. If, however, I get to typing fast and I release the Alt around the same time as I release the key then it will both perform the macro (as desired) and it will additionally switch focus to the menu (which isn't desired). The sequence would be:
[Press and Hold Alt] [Press Key] [Release Alt followed immediately by the release of Key]
If the release of both the keys is nearly at the same time then it will do both things... execute the macro and give focus to the menu. Having it give focus to the menu causes all sorts of havoc for me as I continue to type because I then run some random thing from the menus instead of typing at the command line.
Does anyone else have this issue? Besides being super-careful to always release the Alt key well after the other key or to not use Alt macros at all, I'm not sure what else can be done. I've spent a bit of time surfing the net trying to find some way of disabling Alt access to menus but I've been unable to find anything that'd help. |
|
Last edited by ReedN on Fri Jun 13, 2008 7:05 am; edited 1 time in total |
|
|
 |
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Fri Jun 13, 2008 7:04 am |
Here's a quote from Ralgith from a while back...
| ralgith wrote: |
| No, the shortcut letters are created by the programmer, as are things like ALT-F4 for close and such. However, ALT by itself is a part of the windows dll code for menus. But to answer your question, YES, it can be trapped by the programmer to provide alternate functionality. It is just annoying ;) However I do suffer from the same problems, I macro most things off the F-Keys, and I get 4 uses out of each F-Key by pairing it with ctrl, shift, and alt as well as using it by itself. The ALT ones have always annoyed me this way in zMUD as well, so this would be a nice thing to see in CMUD. I might even actually buy it then ;) |
I'd be interesting to see if *anyone* uses ALT for a menu shortcut. My guess is that menu access via the ALT could probably be removed and nobody would complain. |
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Jun 13, 2008 7:11 am |
Probably nobody on these forums uses it. But there are several vision-impaired customers who use it and I'm not going to remove it because it is a standard Windows keyboard shortcut and I want CMUD to be a standard Windows app as much as possible.
I thought I had changed it so that if the Override Menu shortcut was enabled then the Alt key would never get sent to the menu. But I think what is happening is that Windows is detecting the Alt key at a lower level and converting it into a different command message rather than a simple keystroke message. So I'll need to run some Window messaging spy program to see exactly what messages are being sent to CMUD in the case you described so that I can try to trap them.
I'll put it on the wish-list for a future version. And I guess I always learned to type on the computer and to release the "key" before the "Alt" key. Same with Ctrl and Shift. So it's just one of those habits. When I was trying your procedure, it was actually hard for me to get my fingers to do that. |
|
|
|
 |
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Fri Jun 13, 2008 7:25 am |
Thanks Zugg.
|
|
|
|
 |
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Fri Jun 20, 2008 2:57 am |
Rock solid in 2.28, awesome job!
|
|
|
|
 |
|
|
|