📜  自动热键切换全屏 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:09.005000             🧑  作者: Mango

代码示例1
^F:: ;Toggles Fullscreen
WinGet, vPName, ProcessName, % "ahk_id " hWnd
SetFull:
    {
    WinSet, Style, -0x400000, A ; hides the dialog frame
    WinSet, Style, -0x40000,  A ; hides the sizebox/thickframe
    WinSet, Style, -0x800000, A ; hides the thin-line border
    WinSet, Style, -0xC00000, A ; hides the title bar
    WinSet, Style, -0xC40000, A ; Toggle state to Full
    WinMove, A, , 0, 0, %A_ScreenWidth%, %A_ScreenHeight% ; resize to screen dimensions
Return
}
^D:: ;Toggles Window mode
SetWindow:
    {
    WinSet, Style, +0xC40000, A
Return
}