AHK脚本-碎片解决问题记录

一、vscode 鼠标侧键 映射Alt+LEFT 或 RIGHT 实现代码便捷跳转?

1. (14 封私信 / 60 条消息) 如何使autohotkey只对特定窗口有效? - 知乎: https://www.zhihu.com/question/22437540?from=profile_question_card

 

2. 鼠标侧键在AHK如何表达?

[Autohotkey入门]告诉那些按钮它们的使命是听话: 热键 - 知乎: https://zhuanlan.zhihu.com/p/59697660

 

3. 解决代码

;;2021年4月27日 18:20:37
;;限定以下程序只运行在vscode的里面
#IfWinActive  ahk_exe Code.exe

XButton2::!Right
XButton1::!Left


#IfWinActive