AutoHotkey: problem assigning CAPS LOCK to ALT-TAB

5

Yesterday I asked how I could disable or reassign the infamous CAPS LOCK key. The accepted answer pointed me to AutoHotkey, a powerful free, open-source utility for Windows for automating key strokes and mouse clicks.

The tool includes a script language and even a compiler (!) and it seems to work very well. For example, I managed to map the middle mouse button to the ALT-TAB key combination using this script in Windows Vista:

MButton::AltTabAndMenu
return

Now, I wanted to do the same reassigning the CAPS LOCK key to ALT-TAB:

CapsLock::AltTabAndMenu
return

But this doesn't have the desired effect. Instead of showing the "ALT TAB" running applications menu, it shows the Vista Start menu, as if I had hit the WIN key.

Any suggestions?

splattne

Posted 2009-07-17T12:04:23.423

Reputation: 14 208

You may consider mapping this authotkey script to capslock. It's more efficient than alt-tab if you have lots of windows: http://lifehacker.com/5278802/iswitchw-finds-windows-as-you-type

– Tom – 2011-08-21T07:55:29.997

These both work for me in Vista. – Paused until further notice. – 2009-07-17T17:23:24.453

Answers

4

This works for me

CapsLock::AltTabMenu

return

Kells

Posted 2009-07-17T12:04:23.423

Reputation: 1 008

0

CapsLock UP::AltTabAndMenu
return

svandragt

Posted 2009-07-17T12:04:23.423

Reputation: 2 933

http://www.autohotkey.com/docs/KeyList.htm – svandragt – 2009-07-17T12:12:26.650

Sorry, doesn't work on my machine. Same behavior (opens Windows Start menu) – splattne – 2009-07-17T12:22:40.860