华硕游侠2-RX键盘多功能滚轮自定义M失效的解决方案 新买了一块游侠2 rx键盘想着用自定义滚轮方便打开常用程序但是发现在Armoury Crate中设置后不起作用网上解决方案伤筋动骨得不偿失有一定风险。经测试自定义滚轮能正常执行宏定义只是对宿主机本地的应用程序无法支持。将按键和应用程序绑定到一起然后用宏绑定按键自定义滚轮绑定宏即可解决。以下是“自定义滚轮按倒M模式的时候向上滚动打开当前文件夹所在位置的git-bash”的步骤步骤1下载autoHotKey安装并启动步骤2写AHK脚本实现y依次按下CtrlWinAlth → CtrlWinAltk → CtrlWinAltg → CtrlWinAlti → CtrlWinAltt在当前文件夹打开 Git Bashglobal seq:global lastTime:0CheckSequence(key){global seq,lastTimeif(A_TickCount-lastTime2000)seq:lastTime:A_TickCount seq.keyif(StrLen(seq)5)seq:SubStr(seq,-4)if(seqhkgit){seq:OpenGitBash()}};;快捷键CtrlWinAlth → CtrlWinAltk → CtrlWinAltg → CtrlWinAlti → CtrlWinAltt;功能在当前文件夹打开 Git Bash;^#!h::CheckSequence(h)^#!k::CheckSequence(k)^#!g::CheckSequence(g)^#!i::CheckSequence(i)^#!t::CheckSequence(t)OpenGitBash(){path:GetActiveExplorerPath();如果没在浏览文件夹就打开用户目录if(path)path:A_DesktopRun(C:\Program Files\Git\git-bash.exe,path)}GetActiveExplorerPath(){hwnd:WinGetID(A)class:WinGetClass(ahk_id hwnd)if(class!CabinetWClass)returnforwindow inComObject(Shell.Application).Windows{try{if(window.hwndhwnd)returnwindow.Document.Folder.Self.Path}}return}URLDecode(str){statichex:0123456789ABCDEFabcdefloop{pos:RegExMatch(str,%[hex{2}])if(!pos)breakchar:SubStr(str,pos1,2)str:StrReplace(str,%char,Chr(Number(0xchar)),,1)}returnStrReplace(str,%20, )}用autohotkey加载此脚本注册系统快捷键设置宏并再Armoury Crate绑定设置宏绑定自定义滚轮