So below is my code and it works. But sometimes when I have too many apps, the screen burns a trail of the app in the monitor when minimizing.
While when maximizing, it full screens / maximizes my task bar.
I am using 3 monitors by the way. Do I need to incorporate winwait somewhere?
Code: Select all
#MaxThreadsperHotkey 2
#D::
Previouskey:= !PreviousKey
if PreviousKey
{
GroupAdd, AllWindows
WinMaximize, ahk_group AllWindows
}
else
{
GroupAdd, AllWindows
WinMinimize, ahk_group AllWindows
}
return