Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find All Open Programs
#7
It is difficult to determine what windows must be closed, because there are many windows that you maybe don't think that they are windows, eg desktop, taskbar, tooltips, owners of real windows, and hundreds of hidden windows. This code enumerates all visible nonpopup windows and popup windows that have caption (title bar).

Code:
Copy      Help
ARRAY(int) a
GetWindowList2 0 0 1 0 0 a
int i h
for i 0 a.len
,h=a[i]
,if(h=_hwndqm) continue ;;skip QM
,int style=GetWinStyle(h)
,if(style&WS_POPUP)
,,if(style&WS_CAPTION != WS_CAPTION) continue ;;skip windows without title bar
,,
,out _s.getwintext(h)
,;clo h


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)