#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 DockTop := (MonitorBottom/3)*2 DockHeight := (MonitorBottom/3) #Up::WinMaximize, A #Down:: WinRestore, A WinMove, A,, 0, %DockTop%, ScreenWidth, %DockHeight% return #space:: 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 #g:: InputBox, UserInput, Google Search, Enter search terms. Run http://www.google.com/search?q=%UserInput% #n:: IfWinExist [No Name] - GVIM WinActivate else Run gVim return