Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Min all windows on monitor
#4
Function who_is_where
Code:
Copy      Help
out
int hwnd hMonitor;str exe
MONITORINFO mi.cbSize=sizeof(mi)    


str titles

ARRAY(int) handles
GetWindowList &titles "" 1|2|4 0 0 handles
ARRAY(str) arr = titles

for(int'i 0 arr.len)
,hwnd=handles[i]
,exe.getwinexe(hwnd 1)
,hMonitor=MonitorFromWindow(hwnd MONITOR_DEFAULTTONEAREST)
,GetMonitorInfo(hMonitor &mi)
,sel mi.dwFlags
,,case 1
,,,out "%s - on primary screen" exe        
,if mi.dwFlags=1

,else
,,out "%s - on second screen" exe
pi


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)