Alt Tab Toggle Between Two Windows


rschmidt46

New member
Local time
4:50 AM
Posts
2
OS
Windows 11
I know there have been some posts on this before but I do not see a solution to the problem. In WIN10, Alt+Tab simply switched form the window in focus to the most previously viewed window. I am accustomed to this behavior and use it day in and day out. WIN11 was installed on my PC a couple days ago. Since then Alt+Tab works very differently and is extremely cumbersome. Instead of switching between the last two windows, it forces me to tab through every single window to get back to the one I want. Isn't there a fix or setting to control this? I fiddled with all the settings in the multitasking settings area and nothing works. I've searched the internet and see lots of complaints about it, while others say it works normally and correctly (between the last two windows). I did the regedit thing with a new DWORD32 AltTabSettings entry set to 1, as some suggest. This had no effect.
 

My Computer My Computer

At a glance

Windows 11Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz, 40032 GB
OS
Windows 11
Computer type
PC/Desktop
Manufacturer/Model
Purrrfect Audio (Studio Cat)
CPU
Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz, 400
Motherboard
ASRock 2170 Pro 4
Memory
32 GB
It works as expected, for me. It gets messed up if there's a 3rd window involved by accident.
 

My Computers My Computers

  • At a glance

    Windows 11 Pro
    OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS ROG Strix
  • At a glance

    Windows 11 Pro
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook
  • ASUS VivoBook 'Lite' ~ Windows 11 Home
Is this of any use,
alt tab.webp
 

My Computer My Computer

At a glance

Windows 11 Pro.(25H2)Ryzen 5 9600XT-Create expert 2 x 16GB 6000 CL30-36-36.RX9070XT Hellhound
OS
Windows 11 Pro.(25H2)
Computer type
PC/Desktop
Manufacturer/Model
Self build
CPU
Ryzen 5 9600X
Motherboard
Aorus elite wifi7 B850
Memory
T-Create expert 2 x 16GB 6000 CL30-36-36.
Graphics Card(s)
RX9070XT Hellhound
Sound Card
Onboard/Logitech Z313 speakers
Monitor(s) Displays
Samsung G5 Odyssey 27in.
Screen Resolution
2560 x 1440, 144Hz
Hard Drives
Lexar NM790 2TB
PSU
Corsair RM850 (2019 model)
Case
Kendomen Titanium, 5 x 120mm fans
Cooling
Phantom Spirit 120 SE Black CPU cooler
Keyboard
Logitech MK120
Mouse
Logitech M90
Browser
Edge, Chrome
Antivirus
Defender
My Alt + Tab does not work that way. When I hit Alt + Tab, the only window that shows up immediately is one that's open (among many) but not the one I want. When I release the Tab key, it switches to that window. To get from my current window ("Window 1") to the one I want (say, "Window 5"), I must tab 5 times to get there. Then releasing the Tab key does switch to that window. As I said, I am accustomed to the behavior that Alt + Tab automatically shows the last viewed window first so I just release the Tab key and don't even think about it. Now it doesn't work that way and it's very frustrating.
 

My Computer My Computer

At a glance

Windows 11Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz, 40032 GB
OS
Windows 11
Computer type
PC/Desktop
Manufacturer/Model
Purrrfect Audio (Studio Cat)
CPU
Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz, 400
Motherboard
ASRock 2170 Pro 4
Memory
32 GB
My Alt + Tab does not work that way. When I hit Alt + Tab, the only window that shows up immediately is one that's open (among many) but not the one I want. When I release the Tab key, it switches to that window. To get from my current window ("Window 1") to the one I want (say, "Window 5"), I must tab 5 times to get there. Then releasing the Tab key does switch to that window. As I said, I am accustomed to the behavior that Alt + Tab automatically shows the last viewed window first so I just release the Tab key and don't even think about it. Now it doesn't work that way and it's very frustrating.
This is not a keyboard issue and not user error. In some Windows 11 builds, the Alt + Tab window switching logic has been changed (or effectively broken). Instead of using the traditional MRU order (Most Recently Used window), the switcher follows a fixed order, which is why pressing Alt + Tab initially highlights the current window and forces you to cycle manually with multiple Tab presses.


If changing the registry value
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer → AltTabSettings = 0
does not restore the classic behavior, then the MRU logic is simply not respected by that Windows build anymore.


In that case, the only reliable solution is to override the key handling using AutoHotkey. This is not a hack, but a common and clean workaround that adjusts how the key combination is interpreted.


The idea is straightforward:


  • a quick Alt + Tab press immediately switches to the previously used window (classic Windows 7/10 behavior)
  • holding Alt and pressing Tab repeatedly still cycles through all open windows normally

This requires AutoHotkey v1.1 (not v2) and a very small script that distinguishes between a short tap and a held key combination.


Example script:


; Restore classic MRU Alt+Tab behavior on Windows 11

~Alt::
KeyWait, Alt, T0.2
if ErrorLevel
Send, {Alt Down}
return

~Tab::
if GetKeyState("Alt", "P")
{
Send, ^!{Tab}
return
}
return


The script does not modify the system, does not inject anything into applications, and can be disabled at any time. In practice, this is currently the cleanest and most reliable way to get back instant “switch to last window” behavior on affected Windows 11 versions.


In short:
this behavior is caused by a Windows change, not by the user, and without an external tool it cannot be fully fixed on some builds.
 

My Computer My Computer

At a glance

Windows 11 Pro 25H2 build 26200.8894AMD Ryzen 7 7700XRAM: 64 GB DDR5AMD Radeon RX 7800 XT (16 GB)
OS
Windows 11 Pro 25H2 build 26200.8894
Computer type
PC/Desktop
Manufacturer/Model
Custom build (Gigabyte)
CPU
AMD Ryzen 7 7700X
Motherboard
Gigabyte B650M GAMING X AX
Memory
RAM: 64 GB DDR5
Graphics Card(s)
AMD Radeon RX 7800 XT (16 GB)
Sound Card
Realtek (onboard)
Monitor(s) Displays
Samsung
Screen Resolution
1920 x 1080
Hard Drives
Samsung 990 PRO 1 TB (NVM-e),
Keyboard
Logitech MX Master
Mouse
Logitech
Internet Speed
13ms/250Mbps/25Mbps
Browser
Microsoft Edge
Antivirus
Bitdefender
Other Info
UEFI, Secure Boot ON, TPM 2.0 ON
I find that Alt Tab works exactly as you want it to. As an example, let's say I have five different programs open and currently the focus is on Notepad. The last program that I used before notepad was Word. If I now tap alt tab and release, that will switch me from notepad back to Word which if I'm understanding correctly is exactly what you want. If I want to switch to any one of the other programs that are currently open then I simply have to keep holding down al and pressing tab multiple times.

But the point is that if I only alt tab one time then it switches to the last program that I used before the current one exactly as you want.

However, my personal preference is to use Win + Tab rather than Alt + Tab. Give it a try it's possible that you may like it better than Alt Tab.
 

My Computers My Computers

  • At a glance

    Win11 Pro 25H2 (RTM+)Intel i7-14650HX32 GBNo GPU - Built-in Intel Graphics
    OS
    Win11 Pro 25H2 (RTM+)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acemagic
    CPU
    Intel i7-14650HX
    Memory
    32 GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    Varies as machine will often be moved to locations with different monitors
    Screen Resolution
    Varies
    Hard Drives
    1 x 1TB Gen 4 NVMe SSD
    PSU
    120W Power Brick
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • At a glance

    Win11 Pro 25H2 (RTM+)Intel i7-1255U16 GBIntel Iris Xe Graphics
    Operating System
    Win11 Pro 25H2 (RTM+)
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Keyboard
    Backlit, spill resistant keyboard
    Mouse
    Buttonless Glass Precision Touchpad
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
This is not a keyboard issue ...
Is this a subject you have experience of or yet another online-AI copy&paste?


Denis
 

My Computer My Computer

At a glance

Windows 11 Home x64 Version 25H2 Build 26200....
OS
Windows 11 Home x64 Version 25H2 Build 26200.8037
Is this a subject you have experience of or yet another online-AI copy&paste?


Denis
I have nothing to add to these comments. For my part, I am trying to help. I have dealt with exactly the same issue myself.
 

My Computer My Computer

At a glance

Windows 11 Pro 25H2 build 26200.8894AMD Ryzen 7 7700XRAM: 64 GB DDR5AMD Radeon RX 7800 XT (16 GB)
OS
Windows 11 Pro 25H2 build 26200.8894
Computer type
PC/Desktop
Manufacturer/Model
Custom build (Gigabyte)
CPU
AMD Ryzen 7 7700X
Motherboard
Gigabyte B650M GAMING X AX
Memory
RAM: 64 GB DDR5
Graphics Card(s)
AMD Radeon RX 7800 XT (16 GB)
Sound Card
Realtek (onboard)
Monitor(s) Displays
Samsung
Screen Resolution
1920 x 1080
Hard Drives
Samsung 990 PRO 1 TB (NVM-e),
Keyboard
Logitech MX Master
Mouse
Logitech
Internet Speed
13ms/250Mbps/25Mbps
Browser
Microsoft Edge
Antivirus
Bitdefender
Other Info
UEFI, Secure Boot ON, TPM 2.0 ON
Back
Top Bottom