📜  ahk 计时器切换 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:33.282000             🧑  作者: Mango

代码示例1
F8:: SetTimer, Looped, 5
F8 UP:: SetTimer, Looped, OFF
;F8 Loop works only while is pressed

F10:: ;toggle function
if (tgl := !tgl) 
{
SetTimer,Looped, 1000
Tooltip, Looped On, 0,0
}
Else
Reload
Return

Looped:
;your code here
Return