| View previous topic :: View next topic |
| Author |
Message |
jonny
Joined: 13 Nov 2004 Posts: 3005 Location: Minnesota
|
Posted: Tue Jan 18, 2005 5:01 am Post subject: AltTab bug |
|
|
Some might wonder why this shows up at the same time as my Wishlist request... Anywho, AltTab has a slight bug. After I finish my window switching, Alt seems to be still held down. The problem is quickly solved by depressing and releasing either Alt key. The script:
| Code: | ~Control::AltTabMenuDismiss
~Alt::AltTabMenuDismiss
~Shift::AltTabMenuDismiss
XButton1::AltTabAndMenu
XButton2::ShiftAltTab |
I'm not sure how to workaround so far, because I can't put any other commands in along with them, like Send, {Alt up}. The circumstances are:
- Using Alt-Tab Thingy, which, along with this script, makes AltTab fully mouse-operated.
- It happens after clicking my selection in Alt-Tab Thingy, after using XButton's and moving the mouse to navigate it.
I haven't tested it under any other circumstances yet, I'm going to do that right now. I'll keep you posted! (Get it? "Posted," it's a forum... you know... whatever ) |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10465
|
Posted: Tue Jan 18, 2005 2:34 pm Post subject: |
|
|
Try adding #InstallKeybdHook to the top of your script. When I did that, the following script worked okay for me:
MButton::AltTabAndMenu
RButton::ShiftAltTab
~LButton::AltTabMenuDismiss
(I used different mouse buttons because I don't have XButton1 or 2 to test with).
I'll fix future versions to put the keyboard hook into effect automatically for these types of scripts. |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3005 Location: Minnesota
|
Posted: Tue Jan 18, 2005 6:42 pm Post subject: |
|
|
| I still have the problem; I think it might be the fault of Alt-Tab Thingy. Did you test it without the keyboard hook first, to see if you could reproduce the problem? Later on I'll test this on my desktop to see if the same problem occurs, but I think it's just some weird compatibility issue with this program. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10465
|
Posted: Tue Jan 18, 2005 10:00 pm Post subject: |
|
|
| jonny wrote: | | Did you test it without the keyboard hook first, to see if you could reproduce the problem? | I did, but it basically didn't work at all for me without the keyboard hook: the alt-tab menu would appear, but the buttons could not navigate through it. |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3005 Location: Minnesota
|
Posted: Tue Jan 18, 2005 10:19 pm Post subject: |
|
|
| Ok; Well, as I understand, the hook takes a bit of memory to implement, so if this problem only applies to mouse hotkeys + AltTab actions, it might be best to just include it as a note in the documentation and leave the default as it is. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10465
|
Posted: Tue Jan 18, 2005 10:52 pm Post subject: |
|
|
Since all mouse hotkeys require the mouse hook, and since adding a second hook takes up hardly any memory compared to adding the first, I think adding the second hook is the correct way to fix this.
I'm glad you noticed it because the documentation gives examples that would not function correctly without the keyboard hook. |
|
| Back to top |
|
 |
|