Simple Autohotkey script doesn't work in XYplorer only [Solved]
Posted: 04 Sep 2023 00:32
Found this Autohotkey script to switch to previous active window.
It works in all windows except when XYplorer window is active - nothing happens, no switch just focus lost.
Anyone have idea why it doesn't work? Is XY different kind of window?
It works in all windows except when XYplorer window is active - nothing happens, no switch just focus lost.
Code: Select all
Capslock::
winNumber = 0
WinGet, win, List
Loop, %win% {
WinGetTitle, ttitle, % winTitle := "ahk_id " win%A_Index% ; Window title
WinGet, proc, ProcessName, %winTitle% ; Window process
WinGetClass, class, %winTitle% ; Window class
winNumber += !(class ~= "i)Toolbar|#32770") && ttitle > ""
&& (ttitle != "Program Manager" || proc != "Explorer.exe")
} Until (winNumber = 2)
WinActivate, %winTitle%
Return