AHK 自动按键工具浏览器
可实现功能测试
测试以下:网站
; AutoHotkey 简单实用说明 2018-11-27 by zjfree ; 快捷键说明 # Win, ! alt, ^ control, + shift ; 仅容许运行一个 #SingleInstance ; 定时器 lastNow 保证必然执行 #Persistent lastNow = 0 SetTimer, autoTimer, 30000 Return autoTimer: FormatTime, now,, yyyyMMdd HH:mm FormatTime, HHmm,, HH:mm if (lastNow == now) Return lastNow = %now% IfEqual, HHmm, 08:30, Msgbox,0,提醒,上班了,5 IfEqual, HHmm, 12:00, Msgbox,0,提醒,吃饭喽,5 IfEqual, HHmm, 18:00, Msgbox,0,提醒,下班了,5 IfEqual, now, 20181128 09:00, Msgbox,0,提醒,2018-11-28 定时提醒,5 Return ; 【WIN+B】打开百度网站 #b::run www.baidu.com ; 【WIN+C】打开计算器 #c::run calc ; 【WIN+N】打开记事本 #n:: run notepad sleep 200 send {F5}{Enter}{Enter} return ; 【WIN+K】开关键 1秒输入一个a #k:: if ONOFF := !ONOFF SetTimer, KeyPress, 1000 else SetTimer, KeyPress, Off Return KeyPress: Send, a Return ; 【Win+P】 会暂停脚本. 再按一次则取消暂停. #p::Pause