how do i detect if a secondary monitor is on? i'd like to move a window to the secondary monitor only if its on and to let it remain on the primary monitor if its off.
Alright then, UIAutomation is another way to achieve it under win 10
Local $hWnd = WinWait("[CLASS:ApplicationFrameWindow]")
ConsoleWrite($hWnd & @CRLF)
Local $oUIAutomation = ObjCreateInterface($sCLSID_CUIAuto