Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to close all open and minimised windows
#7
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.

Code:
Copy      Help
;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
,


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)