AutoHotkey #IfWinNotActive 未激活

AutoHotkey #IfWinNotActive not activating

我喜欢双击鼠标中键,所以我有一个 .ahk 脚本来实现这一点,但我使用了很多程序(特别是涉及 3D 环境的程序,例如 Autodesk 的东西)需要鼠标中键才能正常工作,所以我有这个脚本:

#SetTitleMatchMode,  2
#IfWinNotActive, Autodesk 
MButton::send, {LButton}{LButton}

所有这一切都是为了让双击持续工作。就好像它完全忽略了 WinNotActive 一样。我不知道为什么这不起作用。我已经尝试了一些方法来查看是否可以自己修复它,但我没有取得任何进展。

请记住,非常感谢友好和恭敬的回复。

上下文相关指令适用于以下所有热字串和热键。因此,您必须 "reset" 此行为并使用另一个 #ifWinNotActive:

限制范围
#SetTitleMatchMode,  2
#IfWinNotActive, Autodesk 
MButton::send, {LButton}{LButton}
#IfWinNotActive

(详见https://autohotkey.com/docs/commands/_IfWinActive.htm#Basic_Operation