Search code examples
windows-10autohotkey

Detect task switcher window in Windows 10


Since switching from Windows 7 to Windows 10, the following does not work any more:

#IfWinActive ahk_class TaskSwitcherWnd
;; (Hotkeys that should only be active when the task switcher window is active)
#If

Apparently the task switcher is not a window any more, it is also not detected with DetectHiddenWindows, On.

Is there a way to detect the task switcher in windows 10?


Solution

  • On Windows 10 its title is Task Switching, class MultitaskingViewFrame, and process explorer.exe.
    And I didn't need hidden windows detecting to be set for detecting it either.