I simply wish to be able to toggle with a hotkey Minimize & Maximize on one certain full screen app that I always use. I want to use this for only one app, and not whichever app has focus.
I have read dozens of ways to do this online, none of which have worked.
I know there are a few commands that I could use:
WinMinimize, A
WinMaximize, A
But I am not sure how to string it all together. When looking for examples I came up with this somewhere:
^#n::
IfWinExist, ahk_class Notepad
{
WinGet,WinState,MinMax,ahk_class Notepad
If WinState = -1
WinMaximize
else
WinMinimize
}
; else
; Run, Notepad
Return
However this only maximized my app, and not minimized it. Perhaps this was due to the fact app was a fullscreen app, i don't know.