CODE:
; Press F1 to restore the last minimized window:
F1::
arr := []
WinGet, id, list,,, Program Manager
Loop, %id%
{
this_id := id%A_Index%
WinGet, state, MinMax, ahk_id %this_id%
if (state = -1)
arr.push(this_id)
}
last := arr.pop()
WinRestore, % "ahk_id " last
return
Statistics: Posted by GEV — 57 minutes ago