^+a::
WinGet, TempWindowID, ID, A
If (WindowID != TempWindowID)
{
WindowID:=TempWindowID
WindowState:=0
}
If (WindowState != 1)
{
WinGetPos, WinPosX, WinPosY, WindowWidth, WindowHeight, ahk_id %WindowID%
WinSet, Style, -0xC40000, ahk_id %WindowID% ; apply borderless style
WinMove, ahk_id %WindowID%, , 0, 60, 1920, 1080 ; Apply custom resolution. Centers screen on 1200p. Change 60 to 0 if using a 1080p display, decrease to move the window up.
}
Else
{
WinSet, Style, ^0xC40000, ahk_id %WindowID% ; Restore default style
WinMove, ahk_id %WindowID%, , WinPosX, WinPosY, WindowWidth, WindowHeight ; Restore default positions
}
WindowState:=!WindowState
return