Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   AutoIt (http://forum.oszone.net/forumdisplay.php?f=103)
-   -   Обнаружение полноэкранного приложения (http://forum.oszone.net/showthread.php?t=330831)

sashadeg 28-10-2017 18:17 2773996

Обнаружение полноэкранного приложения
 
Подскажите, как можно узнать, открыто ли в данный момент на весь экран какое-нибудь полноэкранное приложение, например, игра?

Iska 28-10-2017 22:47 2774048

autoit detect fullscreen application site:www.autoitscript.com - Поиск в Google

sashadeg 28-10-2017 23:21 2774052

Цитата:

Цитата Iska
autoit detect fullscreen application site:www.autoitscript.com - Поиск в Google »

Я искал по запросу autoit find fullscreen application, а не detect и ничего не нашел =) Спасибо большое!

sashadeg 29-10-2017 18:10 2774154

Нашел вот этот код, но он говорит, что открытый рабочий стол это 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


furr7325@vk 03-12-2017 13:25 2781992

https://youtu.be/tmaVEk-zhRE вот может поможет.


Время: 15:04.

Время: 15:04.
© OSzone.net 2001-