Appearance
AutoHotkey
AutoHotkey , Windows 操作系统下主打快捷键加强、自动化的开源脚本软件。访问 https://www.autohotkey.com/ ,下载安装版本 V2.0 。
开始菜单,打开 AutoHotkey Dash 。
- New script
- Compile
- Help files
- Windows spy
- Launch settings
- Editor settings
点击 New script ,命名 a ,选择 Minimal for V2 ,新建文件 a.ahk 。首次新建文件会要求配置 Editor settings 。
#Requires AutoHotkey v2.0或者空白处,鼠标右键,新建 AutoHotkey Script 。
编辑文件,输入内容。双击运行文件,任务栏通知区域(托盘区域)显示图标,即脚本生效。
#Requires AutoHotkey v2.0
; 文本编辑时,输入 hw 被替换输入
::hw::Hello World
; 文本编辑时,使用 Ctrl + J 输入内容
^j::
{
SendText "Hello Human"
}
; 使用 Ctrl + p 运行记事本
^p::Run "notepad"
; 使用 Windows + Z ,浏览器访问百度
#z::Run "https://baidu.com/"图标,鼠标右键。
- Open
- Help* Windows Spy
- Reload Script
- Edit Script
- Suspend Hotkeys
- Pause Script
- Exit
定义快捷键时, Ctrl、 Windows、 Alt、 Shift 的修饰符分别为 ^ # ! + 。