例子代码如下
简单的说,先生成一个时间,再在循环里面判断时间的长度
sTime1 = Plugin.Sys.GetTime()do KeyPress "A", 1 Delay 100 sTime2= Plugin.Sys.GetTime() If stime2-stime1>120000 Then'2分钟后 也就是120秒 这边的单位是毫秒 所以要x1000 Exit do End IfloopMessageBox "跳出来了"
请马上采纳哦 谢谢