hellen_dorandt89
hellen_dorandt89

Reputation: 457

I cant seem to remove a window from alt-tab list

I confirmed this bit of code a few months and set it aside for when I will need it. I need to exclude a program from alt-tab list, for examples sake, I am using notepad:

WinSet, ExStyle, ^0x80, notepad

Notedpad is still present in alt-tab. I could have sworn this used to work. Did windows 11 new alt-tab break compatibility? or am I doing it wrong?

Any help would be wonderfull.

Upvotes: 1

Views: 185

Answers (1)

Relax
Relax

Reputation: 10568

You need a timer or a loop to perform an action, each time a window appears:

#Persistent
SetTimer, exclude_program_from_alt_tab_list, 200 
Return

exclude_program_from_alt_tab_list: 
    WinSet, ExStyle, 0x80, ahk_class Notepad ; Windows 11
Return

Upvotes: 2

Related Questions