Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Min all windows on monitor
#1
do you have a general function for dealing with windows on multiple screens/monitors?

i would like to min all windows on the second screen when windows media center is running fullscreen.
pi
#2
a monitor trigger?

i already have two handmade toolbars on my 2 monitors.
it would be nice to resemble the windows show desktop button per monitor.
pi
#3
no.

Get all windows, call MonitorFromWindow...
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)