【问题标题】:AutoHotKey - Disable Script in Specific ApplicationAutoHotKey - 在特定应用程序中禁用脚本 【发布时间】:2021-09-29 23:42:45 【问题描述】: 我创建了一个带有键盘快捷键的 ahk 脚本。但是,我想禁用特定应用程序中的快捷方式。我该怎么做呢?谢谢。 【问题讨论】: autohotkey.com/docs/commands/_IfWinActive.htm 标签: autohotkey 【解决方案1】: 你可以在你的快捷命令下使用: if WinActive("APPLICATIONNAME") return Documentation here 【讨论】: #IfWin[Not]Active,正如@Oleg 的评论中提到的,是更好的选择。