Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dual Monitors - window becomes active when mouse is in monit
#7

Also I was having a problem with GetFirstWindowInMonitor bring up windows that were minimized, here is the fix for that.


Function ( GetFirstWindowInMonitor )
Code:
Copy      Help
;/;
function# h mon

;Simplified.

rep
,h=GetWindow(h iif(h GW_HWNDNEXT GW_HWNDFIRST)); if(!h) break
,if(MonitorFromWindow(h MONITOR_DEFAULTTONULL)!=mon) continue
,if(!IsWindowVisible(h) or !IsWindowEnabled(h) or (min(h)=1)) continue ;;or (min(h)=1)
,if(GetWindow(h GW_OWNER) or GetWinStyle(h 1)&WS_EX_TOOLWINDOW) continue
,ret h


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)