1. https://www.autohotkey.com/
2. 下载ahk
3. 修改脚本,Return 0是在该应用启用,如chrome中启用
is_target()
{
IfWinActive,ahk_exe chrome.exe
Return 0
IfWinActive,ahk_class emacs
Return 0
IfWinActive,ahk_class runemacs
Return 0
IfWinActive,ahk_exe Explorer.exe
Return 1
IfWinActive,ahk_exe WindowsTerminal.exe
Return 0
IfWinActive,ahk_class ConsoleWindowClass ; Cygwin
Return 1
IfWinActive,ahk_class MEADOW ; Meadow
Return 1
IfWinActive,ahk_class cygwin/x X rl-xterm-XTerm-0
Return 1
IfWinActive,ahk_class MozillaUIWindowClass ; keysnail on Firefox
Return 1
; Avoid VMwareUnity with AutoHotkey
IfWinActive,ahk_class VMwareUnityHostWndClass
Return 1
IfWinActive,ahk_class Vim ; GVIM
Return 1
IfWinActive,ahk_exe Code.exe
Return 1
IfWinActive,ahk_class mintty
Return 1
Return 1
}
这篇博客介绍了如何使用AutoHotkey脚本来管理应用程序的激活状态,特别是针对Chrome、Emacs、Cygwin等应用进行定制化的启用设置。脚本通过检查窗口活动状态来决定是否允许特定应用被激活,从而实现更高效的工作流程。
2679

被折叠的 条评论
为什么被折叠?



