I recently swapped the ctrl and alt functions on my computer to make it feel more like a mac, but one thing is still bugging me. When I press alt-tab now I cycle through different tabs of the application I'm using, but I want it to cycle through windows, which is what ctrl-tab now does. Does anyone know of a script I can run to take care of that? Thanks!

EDIT: I still want both the functions, I just want their keys to be swapped (instead of alt-tab swapping windows, I want ctrl-tab to. Instead of ctrl-tab swapping tabs, I want alt-tab to. This is the only function I want swapped)

  • ALT+TAB always cycles through all active programs. You are not going to be able to disable that functionality.
    – Ramhound
    Jun 6, 2017 at 17:04
  • Disclaimer: I haven't tried this: howtogeek.com/194811/…
    – wysiwyg
    Jun 6, 2017 at 17:19
  • @Ramhound Not trying to disable it, I'm trying to remap it.
    – Zephyzu
    Jun 6, 2017 at 17:32
  • @wysiwyg You wouldn't happen to know how to swap the keys, would you? That only says how to disable them.
    – Zephyzu
    Jun 6, 2017 at 17:42
  • @Zephyzu just dropping by to say I'm having the same irk, and am wondering if in the intervening 3 years here you've found a good workaround that you can come back and answer this question yourself; I've been given a windows machine for a new client at work and my muscle memory from 8+ years on mac is really frustrating me...
    – Will Buck
    Mar 26, 2020 at 15:29

4 Answers 4


try this

Ctrl & Tab::AltTab

  • 2
    Why would I want to try this, ie what will happen (or not happen)? Nov 18, 2017 at 14:35
  • Amazing, I have been trying countless AutoHotKey recipes, this is the only one that works. And it is so simple! I would give +10 if I could. Thank you.
    – gsl
    Mar 5, 2019 at 14:10
  • works perfectly in win 10! Thank you!! All other solutions either too complex or not working
    – Jerry T
    Dec 2, 2019 at 2:32

Make ahk swap 'em keys globally:

  • 2
    I already did. What I'm trying to do now is swap only the function I mentioned back to it's original position so it better emulates a mac style of keyboard
    – Zephyzu
    Jun 6, 2017 at 19:42

Like the others have said there seem to be a number of ways to possibly do this:

  • I already got the keys swapped with autohotkey, what I'm trying to do now is swap one function back to it's original keymapping without messing with anything else
    – Zephyzu
    Jun 6, 2017 at 19:48
  • See addition in updated post
    – dtbnguyen
    Jun 6, 2017 at 20:02
  • 1
    Sorry about the weird wording, I'm by no means good with computers. Autohotkey uses its own script which you can use to change pretty much any keybinding on your computer if you know it. For instance, I used this script: LCtrl::Alt LAlt::Ctrl to swap everything that control does with alt, so now the alt key acts like control and is in the same place as the command key on a mac, which I'm used to. the only issue I'm facing now is that now alt-tab cycles between tabs of a program and ctrl-tab cycles between open programs. I want alt-tab to cycle open programs and ctrl-tab to cycle tabs.
    – Zephyzu
    Jun 7, 2017 at 14:37

I borrowed this from somewhere: this will fix not only alt tab, but also alt shift tab.

; Remap Ctrl-Tab to Alt-Tab
Send {Alt down}{Tab}
Keywait Control
Send {Alt up}

; Remap Ctrl-Shift-Tab to Alt-Shift-Tab
Send {Alt down}{Shift down}{Tab}
Keywait Control
Send {Alt up}
Send {Shift up}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .