Нашел вот этот код, но он говорит, что открытый рабочий стол это fullscreen.
Код:
While 1
; Resolution might be changed so check each time
$iW = @DesktopWidth
$iH = @DesktopHeight
; Get GUI size
$aPos = WinGetPos("[ACTIVE]")
; Just for testing
ConsoleWrite($aPos[2] & " - " & @DesktopWidth & @CRLF)
ConsoleWrite($aPos[3] & " - " & @DesktopHeight & @CRLF)
; Does the active GUI fill the screen
If $aPos[2] >= $iW And $aPos[3] >= $iH Then
SplashTextOn("Active", "FullScreen")
ConsoleWrite("FullScreen" & @CRLF)
Else
SplashTextOn("Active", "Not FullScreen")
ConsoleWrite("Not FullScreen" & @CRLF)
EndIf
; Allow splash to be seen
Sleep(2000)
SplashOff()
; Set this to a suitable value to check at intervals
Sleep(5000)
WEnd