Autohotkey 运行 应用程序最小化不工作

Autohotkey running application minimized not working

AHK 的新手。尝试以最小化(或最大化)方式启动记事本,但它始终以正常大小启动。我使用 Windows 10. 有什么想法吗?我的代码如下:

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

^j::
   Run, Notepad.exe, min
Return

试试这个:

^j::
    Run, Notepad.exe, , Min
Return

这是 AHK 中 "Run" 的默认语法:

Run, Target [, WorkingDir, Max|Min|Hide|UseErrorLevel, OutputVarPID]