; 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 ~RControl up:: If (A_PriorHotkey = A_ThisHotkey and A_TimeSincePriorHotkey < Delay) WinMinimize, A Return ~RShift up:: If (A_PriorHotkey = A_ThisHotkey and A_TimeSincePriorHotkey < Delay) WinMaximize, A Return