Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to remap Win+Tab to Ctrl+Alt+Tab using Autohotkey, in a way that each time I hit Win+Tab, it would send Ctrl+Alt+Tab instead.

I have this so far, but I'm not sure why it isn't working. I checked the documentation on Autohotkey and everything seemed right..

Rwin & Tab::send, CtrlAltTab

I was hoping someone could help me with this, thank you!

share|improve this question
add comment

3 Answers

up vote 1 down vote accepted

I can't check this because Ctrl+Alt+Tab doesn't seem to do anything on my machine, but the code would probably be:

Rwin & Tab::Send, ^!{Tab}

If this doesn't work, check first with either SoundBeep, 500, 500 or a normal character. If the SoundBeep, 500, 500 or normal character in e.g. Notepad doesn't work either, you might have to run AutoHotKey in Admin mode (Windows 8 issue).

The alternative that Aaron Miller came up with should be:

RWin & Tab::Send {Ctrl Down}{Alt Down}{Tab}{Alt Up}{Ctrl Up}

But as said again, test FIRST if AutoHotKey does work in Windows 8 with something simple like e::a . There is a good chance it does NOT, unless you run it with Admin rights (right click run as...)

I realize why Ctrl+Alt+Tab doesn't work on my machine. I disabled Flip 3D!

share|improve this answer
    
Thanks for the reply, but it still doesn't work. Edit: I didn't know pressing enter would send the comment, sorry. On Windows 8, it should open the Alt-Tab, without having to hold Tab, shortcutworld.com/en/win/Windows_8.html#link_3. When I press the keys normally, it works fine, but not with the keys remapped with Autohotkey. –  Gordon Pham-Nguyen Jun 10 '13 at 20:30
    
Gordon, I still have not seen confirmation that AutoHotKey does work in your Windows 8 environment. I want to see proof of that before trying to tackle this code. create a script with e.g. F1::SoundBeep, 500, 500 run that script and see what happens when you press [F1]. –  Robert Ilbrink Jun 12 '13 at 6:08
    
Robert, when I press F1, a beep comes out of my computer speakers. –  Gordon Pham-Nguyen Jun 12 '13 at 15:58
    
Perfect, Next try F1::SendInput, ^!{Tab} or of that doesn't work just F2::SendInput, Hello and then press F2 when Notepad is active. –  Robert Ilbrink Jun 12 '13 at 17:03
    
F1 doesn't work, but F2 works and types out "Hello". –  Gordon Pham-Nguyen Jun 13 '13 at 3:54
show 6 more comments

CtrlAltTab doesn't seem to mean anything special to AutoHotkey, per its documentation; if anything, I'd expect it to send the literal string. (Try it while a Notepad window has focus; it seems likely the result would be "CtrlAltTab" entered into the Notepad window as though you'd typed it.)

Instead, try this:

RWin & Tab::Send {Ctrl}{Alt}{Tab}

or perhaps this, which would affect both Windows keys:

#Tab::^!{Tab}
share|improve this answer
    
Thanks for the reply, but that still doesn't work for me. Ctrl+Alt+Tab is supposed to trigger this on Windows 8. With the first string, nothing happens. The second one gives me an error that the command is not recognized. –  Gordon Pham-Nguyen Jun 10 '13 at 20:38
    
@GordonPham-Nguyen: For the record Ctrl+Alt+Tab works the same way in Win7 as well. Win+Tab and Ctrl+Win+Tab in Win7 activate Flip3D. –  Karan Jun 11 '13 at 0:20
    
To those who edited: Good work in general, but in this case, the edit was bogus because what's intended there is not a combination of the three keystrokes, but rather the literal string CtrlAltTab -- hence the use of backticks in one instance, and double-quotes in the other. –  Aaron Miller Jun 13 '13 at 5:26
add comment

Find Window Switcher.lnk in C:\Users\Default\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch and activate this link with any shortcut you want.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.