; minimize the current window when pressing right control twice quickly ; maximize the current window when pressing right shift twice quickly #NoEnv SendMode Input #NoTrayIcon Delay = 250 ~ScrollLock up:: If (A_PriorHotkey = A_ThisHotkey and A_TimeSincePriorHotkey < Delay) WinMinimize, A Return ~Pause up:: If (A_PriorHotkey = A_ThisHotkey and A_TimeSincePriorHotkey < Delay) { WinExist("A") WinGet, MaxState, MinMax, if(MaxState = 1) { WinRestore return } WinMaximize } Return