按键精灵条件时间判定问题

KeyPress "9", 1
Delay 5000
FindColorEx 0,0,1920,1080,"090C3D",0,0.9,intX,intY
If intX> 0 And intY> 0 Then
End If
MoveTo intX, intY
Rem Z
FindColor 1818,216,1854,282,"33BF33",intX,intY
If intX> 0 And intY> 0 Then
KeyDown "Shift", 1
RightClick 1
KeyUp "Shift", 1
Else
Goto Z
End If
这个是我自己做的一个钓鱼脚本,但是钓鱼存在脱杆的情况,如何在里面插入一个条件经过30秒没有变化就结束脚本?麻烦高手指导

KeyPress "9", 1
Delay 5000
FindColorEx 0,0,1920,1080,"090C3D",0,0.9,intX,intY
If intX> 0 And intY> 0 Then
End If
MoveTo intX, intY
for 30
FindColor 1818,216,1854,282,"33BF33",intX,intY
If intX> 0 And intY> 0 Then
KeyDown "Shift", 1
RightClick 1
KeyUp "Shift", 1
Exit for
Else
Delay 1000
End If
Next
//没找到就延时1秒重新查找,30次没找到就结束循环,找到也结束循环
温馨提示:答案为网友推荐,仅供参考

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网