按键精灵时间怎样控制~~计时器

2024-11-19 10:49:44
推荐回答(5个)
回答1:

先说思路,每次找到图片后做一下判断,是否超过2分钟,如果超过就跳转
Rem 循环

FindPic 818, 100,850, 117,"Attachment:\2.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 100
MoveTo 858, 127
Delay 10
LeftDown 1
Delay 1000
now1=now
End If

FindPic 818, 100,850, 117,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 100
MoveTo 838, 127
Delay 10
LeftDown 1
Delay 10000
now2=now
if (now2-now1)>120000 then
Goto 跳出循环
Else
Delay 100
Goto 循环
End If

Rem 跳出循环

KeyPress "F5", 1
MoveTo 738, 127
LeftDown 1

Goto 循环

回答2:

先说思路,每次找到图片后做一下判断,是否超过2分钟,如果超过就跳转
Rem 循环

FindPic 818, 100,850, 117,"Attachment:\2.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 100
MoveTo 858, 127
Delay 10
LeftDown 1
Delay 1000
now1=now
End If

回答3:

now1 = now

Rem 循环
FindPic 818, 100,850, 117,"Attachment:\2.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 100
MoveTo 858, 127
Delay 10
LeftDown 1
Delay 1000
End If

FindPic 818, 100,850, 117,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 100
MoveTo 838, 127
Delay 10
LeftDown 1
Delay 10000
Goto 循环
Else
Delay 100
Goto 跳出循环
End If

Rem 跳出循环

KeyPress "F5", 1
Delay 120000-(now-now1)*24*60*60
MoveTo 738, 127
LeftDown 1
now1 = now
Goto 循环

回答4:

hi我,在线教你

回答5:

啊哦