I want to use this for only one app, and not whichever app has focus.
I know there are a few commands that I could use:
Code: Select all
WinMinimize, A
WinMaximize, A
Code: Select all
^#n::
IfWinExist, ahk_class Notepad
{
WinGet,WinState,MinMax,ahk_class Notepad
If WinState = -1
WinMaximize
else
WinMinimize
}
; else
; Run, Notepad
Return
I have read dozens of ways to do this online, none of which have worked