autohotkey toggle fullscreen code example

Example: autohotkey toggle fullscreen

^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
}

Tags:

Css Example