I've been trying to get WinList() to get all the open windows and Minimize/Maximize/Hide them...problem is, it picks up everything like the "Program Manager" and my sidebar gadgets, but I only want Minimize/Maximize/Hide windows that are in the taskbar. How can I do this?
#include <Process.au3>
#Include <WinAPI.au3>
$winlist=_getwinlist()
for $i= 1 to $winlist[0][1]
WinSetState($winlist[$i][2],"",@SW_MINIMIZE)
Next
func _getwinlist ()
Local $sExclude_List = "|Start[CL:102939]|Start|Desktop|Start Menu[CL:102938]|taskbar|iconwin|desktop[CL:102937]|Program Manager|taskbar|Menu|Save As|Drag|maincontext|context|"
Local $sExclude_class = "|tooltips_class32|gdkWindowToplevel|gdkWindowTempShadow|TaskSwitcherWnd|gdkWindowTemp|bosa_sdm_Microsoft Office Word 1