Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Single Post  Topic: Autorun 
Author Message
Loopback



PostPosted: Sun Sep 14, 2025 12:41    Post subject: Reply with quote

A55555 wrote:
чтоб при выходе по F11 из поноэкранного режима окно было развернуло на весь экран

В коде не предусмотрен учёт развернутого состояния окна. Если делать правильно (= универсально), надо читать ключ maximized из соответствующей разрешению секции, или из секции AllResolutions, в зависимости от настроек. Но честно говоря мне не хочется тратить на это время, поэтому просто добавьте функцию разворачивания здесь:

Code:

    Else
        PostMessage(AUTORUN_TCHANDLE, 1075, 65537)
        If HasButtonBar  Then SendCommand 2901 1
        If HasDriveBar   Then SendCommand 2902 1
        If HasDriveList  Then SendCommand 2906 1
        SendCommand 2907 1
        If HasTabHeader  Then SendCommand 2908 1
        If HasStatusBar  Then SendCommand 2909 1
        If HasCmdLine    Then SendCommand 2910 1
        If HasKeyButtons Then SendCommand 2911 1
        If HasButtonBar2 Then SendCommand 2944 1
        If HasMainHeader Then WinSetStyle 12582912 2
        # Разворачивает окно на весь экран
        WinSetState(3)
    EndIf
View user's profile Send private message


Powered by phpBB © 2001, 2005 phpBB Group