;Minimize to tray with Window-t ;Unminimize from the tray with Window-g ;Keeps a stack of minimized windows, and unminimizes them in the opposite order that they were minimized ;Uses PowerMenu, http://www.veridicus.com/tummy/programming/powermenu/ . TrayApps_Length=0 #t:: WinGetActiveTitle, Title If (Title != "") { Run D:\Program Files\PowerMenu_1_5_1\PowerMenu.exe -minimized on "%Title%" TrayApps%TrayApps_Length% = %Title% TrayApps_Length+=1 } Return #g:: if (%TrayApps_Length% = 0) { return } else { TrayApps_Length-=1 Title := TrayApps%TrayApps_Length% Run D:\Program Files\PowerMenu_1_5_1\PowerMenu.exe -minimized off "%Title%" } Return