按键精灵怎么重复执行一个已经完成的任务
Delay500FindPic0,0,1024,768,"Attachment:\1.bmp",0.9,intX,intYIfintX>0AndintY>0ThenMov...
Delay 500
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+5,intY+5
LeftClick 1
Delay 500
LeftClick 1
Delay 500
Else
Delay 500
FindPic 0,0,1024,768,"Attachment:\5.bmp",0.9,intA,intB
If intA > 0 And intB > 0 Then
MoveTo 773,361
LeftClick 1
End If
End If
Rem a
FindPic 0,0,1024,768,"Attachment:\3.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
FindColor 257,311,403,222,"00DC00",intX,intY
If intX > 0 And intY > 0 Then
MoveTo 773,361
LeftClick 1
Else
Goto a
End If
Else
Goto a
End If
每次到最后 找到颜色后单击一次 然后就结束了 怎么让他不结束 继续重复找颜色 并单击 直到出现一个图 展开
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+5,intY+5
LeftClick 1
Delay 500
LeftClick 1
Delay 500
Else
Delay 500
FindPic 0,0,1024,768,"Attachment:\5.bmp",0.9,intA,intB
If intA > 0 And intB > 0 Then
MoveTo 773,361
LeftClick 1
End If
End If
Rem a
FindPic 0,0,1024,768,"Attachment:\3.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
FindColor 257,311,403,222,"00DC00",intX,intY
If intX > 0 And intY > 0 Then
MoveTo 773,361
LeftClick 1
Else
Goto a
End If
Else
Goto a
End If
每次到最后 找到颜色后单击一次 然后就结束了 怎么让他不结束 继续重复找颜色 并单击 直到出现一个图 展开
展开全部
推荐你用do loop 循环 ,,我改了下..不知道是你想要的结果吗
Delay 500
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+5,intY+5
LeftClick 1
Delay 500
LeftClick 1
Delay 500
Else
Delay 500
FindPic 0,0,1024,768,"Attachment:\5.bmp",0.9,intA,intB
If intA > 0 And intB > 0 Then
MoveTo 773,361
LeftClick 1
End If
End If
Do
FindPic 0,0,1024,768,"Attachment:\3.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
FindColor 257,311,403,222,"00DC00",intX,intY
If intX > 0 And intY > 0 Then
MoveTo 773,361
LeftClick 1
End If
End If
Delay 10
Loop
Delay 500
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+5,intY+5
LeftClick 1
Delay 500
LeftClick 1
Delay 500
Else
Delay 500
FindPic 0,0,1024,768,"Attachment:\5.bmp",0.9,intA,intB
If intA > 0 And intB > 0 Then
MoveTo 773,361
LeftClick 1
End If
End If
Do
FindPic 0,0,1024,768,"Attachment:\3.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
FindColor 257,311,403,222,"00DC00",intX,intY
If intX > 0 And intY > 0 Then
MoveTo 773,361
LeftClick 1
End If
End If
Delay 10
Loop
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询