I'm using on open source software windows switcher called SmallWindows but it doesn't show minimized windows which is kind of a deal breaker.
I wanted to fix it by making an AHK script that would ensure that all windows are not minimized before I initiate the window switching.
I tried the following script already that I copied off of one of the AHK threads:
Code: Select all
WinGet, WinList, List
Loop % WinList
WinMaximize % "ahk_id " WinList%A_Index%
I'm trying to write a script that will make a list of windows and perform a WinGet MinMax test on each window in the list to figure out if it's minimized or not. It would then do a WinRestore for only the windows that have a MinMax state of -1. This is what I have so far:
Code: Select all
WinGet, WinList, List
Loop % WinList
WinGet, WinState, MinMax, % "ahk_id " WinList%A_Index%
If ( WinState < 0 )
WinRestore % "ahk_id " WinList%A_Index%
sleep 100
Exit
Also, is there a way of making the script go faster, like increasing the scripts priortity or calling some kind of DLL hook?