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
}