>>5535747PgDn & LButton::
Toggle_Window()
Return
Toggle_Window() {
MouseGetPos,,, W
WinGet, S, Style, % "ahk_id " W
If (S & +0xC00000)
{
WinSet, Style, -0xC00000, % "ahk_id " W
WinMove, % "ahk_id " W,, 0, 0, % A_640, % A_480
Return
}
WinSet, Style, +0xC00000, % "ahk_id " W
WinMove, % "ahk_id " W,,,,640, 480
}
Removes Titlebar
PgUp::
ToggleMenu( WinExist("A") )
return
ToggleMenu( hWin )
{
static hMenu, visible
if hMenu =
hMenu := DllCall("GetMenu", "uint", hWin)
if !visible
DllCall("SetMenu", "uint", hWin, "uint", hMenu)
else DllCall("SetMenu", "uint", hWin, "uint", 0)
visible := !visible
}
Removes Menu.
Of course, replace Down Page+Left click and Up Page with keys of your choice.