#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. DetectHiddenWindows, On SysGet, ScreenWidth, 61 SysGet, ScreenHeight, 62 SysGet, Monitor, MonitorWorkArea HalfWidth := MonitorRight/2 #Up::WinMaximize, A #Down:: WinGetPos,,, Width, Height, A if (Height = ScreenHeight and Width = ScreenWidth) WinRestore, A else WinMinimize, A return #Left:: WinRestore, A WinMove, A,, 0, 0, %HalfWidth%, %MonitorBottom% return #Right:: WinRestore, A WinMove, A,, %HalfWidth%, 0, %HalfWidth%, %MonitorBottom% return #space::WinSet, Transparent, 30, A #space up::WinSet, Transparent, 255, A