简单的AutoHotkey教程,一个脚本帮你实现自定义n多快捷键(Windows系统上用的)
戳此下载可直接运行的程序,微信扫描下面二维码也能从手机上分享给好友。
;作者:sunwind
;最新版:https://blog.csdn.net/liuyukuan/article/details/86699642#Persistent
#SingleInstance,force
/*热键说明:
# 代表Win
+ 代表Shift
! 代表Alt
^ 代表Ctrl
& 将两个键组合成一个键列
< 表示左侧的按键,<# 是左侧的Windows键
> 表示右侧的按键,>+ 是右侧的Shift键
; 是单行注释符号
/*...*/括起来是多行注释*/;举例:Win+n运行记事本
#n::run notepad;举例:Win+o运行Outlook
#o::run OUTLOOK;举例:Win+w运行Word
#w::run winword;举例:Win+x运行Xls
#x::run excel;举例:Win+t运行ppT
#t::run PowerPnt;举例:Win+c运行计算器
#c::run calc;举例:Win+b打开Baidu网站
#b::run www.baidu.com;举例:Win+f运行Everything
#f::run D:\Everything\Everything.exe;举例:Win+i运行iThoughts
#i::run C:\Program Files (x86)\toketaWare\iThoughts\iThoughts.exe;Capslock + e 编辑本配置文档
Capslock & e::edit;Capslock + r 重启本脚本
Capslock & r::reload;Capslock + x 退出本脚本
Capslock & x::exitapp;#IfWinActive限定热键只有在某程序(窗口)激活时才能生效,结尾要用#IfWinActive解除限制。
#IfWinActive,ahk_exe iThoughts.exe
;~ 实现在iThoughts中,按Insert 就相当于按Tab,新建子节点
Insert::Send {Tab}
#IfWinActive