08-14-2007, 04:41 PM
I don't know how look these Norman windows. Maybe just add wintest for each window that is not minimized but must be closed anyway.
;closes all visible minimized windows except qm editor
ARRAY(int) a; int i h
GetWindowList 0 "" 1 0 0 a
for i 0 a.len
,h=a[i]
,if(!IsIconic(h)) ;;not minimzed
,,int close=0 ;;if 1, close anyway
,,if(wintest(h "window name" "window class" "etc")) close=1
,,else if(wintest(h "window name 2" "window class 2" "etc")) close=1
,,;...
,,if(!close) continue
,if(wintest(h "" "QM_editor")) continue
,clo h; err
,