; 使用SetTimer计时器判断,键盘鼠标无操作的时间
#NoEnv
#Persistent
#SingleInstance Force
SetBatchLines -1
; 键盘无操作时间设定(分钟)
SetMinutes:=0.5
SetTimer, TimeIdleOption, On
Return
TimeIdleOption:
;鼠标键盘指定时间内无操作自动执行OptionLabel标签内操作,SetMinutes分钟数转化为毫秒
if (Floor(A_TimeIdlePhysical/(SetMinutes*60*1000))>(tCount?tCount:0)){
tCount++
Goto OptionLabel
}
Return
OptionLabel:
ToolTip , % "当前键盘鼠标" SetMinutes "分钟内无操作自动执行第" tCount "次!", % A_ScreenWidth//2, % A_ScreenHeight//2,2
ttc32 := Func("DllCall").Bind("DestroyWindow", "Ptr", WinExist("ahk_class tooltips_class32"))
SetTimer, % ttc32, -3500
Return
声明:站内资源为整理优化好的代码上传分享与学习研究,如果是开源代码基本都会标明出处,方便大家扩展学习路径。请不要恶意搬运,破坏站长辛苦整理维护的劳动成果。本站为爱好者分享站点,所有内容不作为商业行为。如若本站上传内容侵犯了原著者的合法权益,请联系我们进行删除下架。

评论(0)