I want a functionality like when you press 'Win' and 'd' where you see the desktop and if you press it again it restores all windows.
How would one implement that in AHK but with only the active window?
Thanks
UPDATE:
Following code was added, but still unable to restore the minimized window when pressing ALT+s again.
!s::
WinGet, active_id, ID, A
if (toggle:=!toggle)
WinMinimize, ahk_id %active_id%
else
WinRestore, ahk_id %active_id%
Return