The task bar is positioned vertically to the left of the screen. Suppose the running app is placed in the Taskbar. I tried to create a way to toggle the original size and minimization whenever I press the auto-hot key that applies to the app
I get an error message like below. Does it work normally even if I don't see the auto-hot key in the system tray?
Error at line 7.
Line Text: IfWinMinimized, ahk_class Notepad+ +
Error: This line does not contain a recognized action.
The program will exit.
Please advise me what I'm doing wrong
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
[Mod action: Moved topic to the v1 section since this is v1 code. The main section is for v2.]
CODE:
; Define the hotkey (!+1)
!+1::
; Check if the app "Notepad++" is currently active
IfWinActive, ahk_class Notepad++
{
; If it's active, check if it's minimized
IfWinMinimized, ahk_class Notepad++
{
; If it's minimized, restore (float) it
WinRestore, ahk_class Notepad++
}
else
{
; If it's not minimized, minimize it
WinMinimize, ahk_class Notepad++
}
}
; If the app "Notepad++" is not active, bring it to the foreground
else
{
WinActivate, ahk_class Notepad++
}
return
I get an error message like below. Does it work normally even if I don't see the auto-hot key in the system tray?
Error at line 7.
Line Text: IfWinMinimized, ahk_class Notepad+ +
Error: This line does not contain a recognized action.
The program will exit.
Please advise me what I'm doing wrong
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
[Mod action: Moved topic to the v1 section since this is v1 code. The main section is for v2.]
Statistics: Posted by ulysim — 48 minutes ago