Solved Classic Alt Tab (Reincarnation)


Sorry,what I meant was that when the script is running but the AltTab GUI has not been invoked, the ESC key does not seem to work globally.
i fixed the previous post. had to add an else clause to the esc key portion. thanks for the catch.
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Pro
updated original post with new version. all changes listed there.
 

My Computer

System One

  • OS
    Windows 11 Pro
dacrone; In the exe version, the ALT key is globally disabled when the AltTab GUI is not invoked (Ctrl, ESC & SHIFT are not affected).
 
Last edited:

My Computer

System One

  • OS
    Win 11 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom
    CPU
    intel i7-8700
    Motherboard
    Asus Z370 TUF Gaming
    Memory
    32Gb
    Graphics Card(s)
    Intel iGPU
    Sound Card
    Realtek
    Hard Drives
    Samsung
    PSU
    Corsair
    Cooling
    Fans
dacrone; In the exe version, the ALT key is globally disabled when the AltTab GUI is not invoked (Ctrl, ESC & SHIFT are not affected).
i cannot replicate that issue... the line
Code:
~Alt::return
is for Alt to be a passthrough key. when i have the script running and use the Alt key in explorer or my web browser or any other application, it operates as normal
 

My Computer

System One

  • OS
    Windows 11 Pro
Sorry about that. It is the "TAB" key not the ALT key. (Sorry for the confusion. I was juggling with 3 different AltTab scripts going, with 2 suspended - hence the confusion on my part).

The other thing which seems to be not working are the AppFrame icons like Security, Settings &c (they just display as the words such as "Defen", "Settin" &c (without quotes).

pn: There is no hurry to sort these issues. Please take your time.
 

My Computer

System One

  • OS
    Win 11 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom
    CPU
    intel i7-8700
    Motherboard
    Asus Z370 TUF Gaming
    Memory
    32Gb
    Graphics Card(s)
    Intel iGPU
    Sound Card
    Realtek
    Hard Drives
    Samsung
    PSU
    Corsair
    Cooling
    Fans
Sorry about that. It is the "TAB" key not the ALT key. (Sorry for the confusion. I was juggling with 3 different AltTab scripts going, with 2 suspended - hence the confusion on my part).
cant replicate that either. i fixed that 2 revision posts ago. that and shift tab work normally for me anywhere outside of the script gui
 

My Computer

System One

  • OS
    Windows 11 Pro
Might be some quirk on my System. I fixed it by extracting & modifying the script in the .exe file. So all's good.
 

My Computer

System One

  • OS
    Win 11 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom
    CPU
    intel i7-8700
    Motherboard
    Asus Z370 TUF Gaming
    Memory
    32Gb
    Graphics Card(s)
    Intel iGPU
    Sound Card
    Realtek
    Hard Drives
    Samsung
    PSU
    Corsair
    Cooling
    Fans
Might be some quirk on my System. I fixed it by extracting & modifying the script in the .exe file. So all's good.
Which portion did you modify? There’s already an else statement to send tab if gui is not active
 

My Computer

System One

  • OS
    Windows 11 Pro
I had to change it to:
Code:
~Tab::
    if (guiActive || persistentAltTab) {
    vIndex++
    if (vIndex > vCount)
    vIndex := 1
    Gosub, UpdateHighlight
}                                                          
return

Added tilde in front of Tab, and removed the "else" part.

(Also, I added my Custom icons for the AppFrame icons to the script directory).
 

My Computer

System One

  • OS
    Win 11 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom
    CPU
    intel i7-8700
    Motherboard
    Asus Z370 TUF Gaming
    Memory
    32Gb
    Graphics Card(s)
    Intel iGPU
    Sound Card
    Realtek
    Hard Drives
    Samsung
    PSU
    Corsair
    Cooling
    Fans
This script is a life saver, huge thanks.
But I'm getting a bug...
The task pop-up icons work fine and ALT-TAB switches to the correct process so I can once again flip back and forth, with the expected order.

But each time, on arrival at the new process, that process has taken a plain ALT as input, so on arrival it is always highlighting the first top level menu item (typically "File"), in effect asking me to enter the key to choose which item on that pulldown menu I wanted. So after each window switch, I have to hit ESC to get out of the highlighted File menu before I use the application. Does anyone else see this? Same effect on various applications, very old and new. Tnx.
 

My Computer

System One

  • OS
    Win11 Pro
ThankyouThankYouThankyou etc. I too am seeing the same behaviour as @EbAngrous in post #90. Doesn't bother me hugely though.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
i'll take a look at it this week and post back with the fix
 

My Computer

System One

  • OS
    Windows 11 Pro
I'm running as a scheduled task on logon at the moment but any chance of a "run on startup" option? Also, can we have a configuration that replicates the old CoolSwitchColumns and CoolSwitchRows reg hacks please?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
I'm running as a scheduled task on logon at the moment but any chance of a "run on startup" option? Also, can we have a configuration that replicates the old CoolSwitchColumns and CoolSwitchRows reg hacks please?
Just make a shortcut to the exe and place the shortcut in Shell:Startup directory.
It has no registry mods. It’s fully AutoHotkey
 

My Computer

System One

  • OS
    Windows 11 Pro
This script is a life saver, huge thanks.
But I'm getting a bug...
The task pop-up icons work fine and ALT-TAB switches to the correct process so I can once again flip back and forth, with the expected order.

But each time, on arrival at the new process, that process has taken a plain ALT as input, so on arrival it is always highlighting the first top level menu item (typically "File"), in effect asking me to enter the key to choose which item on that pulldown menu I wanted. So after each window switch, I have to hit ESC to get out of the highlighted File menu before I use the application. Does anyone else see this? Same effect on various applications, very old and new. Tnx.
ThankyouThankYouThankyou etc. I too am seeing the same behaviour as @EbAngrous in post #90. Doesn't bother me hugely though.
fixed. updated script is in first post.
 

My Computer

System One

  • OS
    Windows 11 Pro
New version seems to fix the problem I was having (task to which I switched receiving an "alt" character command). Absolute kudos and thanks.
PS: I am still hugely grateful, but I misspoke above, the latest version still has this bug. I missed it because it's not all the time...maybe it depends on how fast/simultaneously I hit the keys? It happens most of the time when switching to (a very old version of ) Excel. I'm trying to develop the habit of doing [alt-tab][esc] as my task switching shortcut, but it's hard to change after a few decades : )
 

My Computer

System One

  • OS
    Win11 Pro
PS: I am still hugely grateful, but I misspoke above, the latest version still has this bug. I missed it because it's not all the time...maybe it depends on how fast/simultaneously I hit the keys? It happens most of the time when switching to (a very old version of ) Excel. I'm trying to develop the habit of doing [alt-tab][esc] as my task switching shortcut, but it's hard to change after a few decades : )
i can no longer replicate the issue.
 

My Computer

System One

  • OS
    Windows 11 Pro
Back
Top Bottom