按键精灵 区域找图找到后停止脚本 找不到继续执行下一步
但现在写的脚本无法继续执行下一步,每次运行都显示找到了,请大神帮看下是怎么回事MoveTo352,220MoveTo304,177Delay31LeftClick1Del...
但现在写的脚本无法继续执行下一步,每次运行都显示找到了,请大神帮看下是怎么回事
MoveTo 352, 220
MoveTo 304, 177
Delay 31
LeftClick 1
Delay 10
KeyDown "Ctrl", 1
Delay 18
KeyDown "C", 1
Delay 12
KeyUp "C", 1
KeyUp "Ctrl", 1
MoveTo 396, 895
Delay 7
LeftClick 1
MoveTo 425, 295
Delay 9
LeftDown 1
LeftClick 1
Delay 16
LeftUp 1
Delay 7
KeyDown "Ctrl", 1
Delay 14
KeyDown "V", 1
Delay 31
KeyUp "Ctrl", 1
KeyUp "V", 1
Delay 8
KeyDown "Enter", 1
Delay 15
KeyUp "Enter", 1
Delay 8
LeftDown 1
LeftClick 1
LeftUp 1
Delay 5
LeftDown 1
LeftClick 1
LeftUp 1
MoveTo 448, 292
Delay 3
LeftDown 1
LeftClick 1
LeftUp 1
MoveTo 449, 300
Delay 28
LeftDown 1
LeftClick 1
LeftUp 1
Delay 14
LeftUp 1
LeftUp 1
Delay 29
LeftDown 1
LeftClick 1
LeftUp 1
Delay 6
KeyDown "Ctrl", 1
Delay 10
KeyDown "A", 1
Delay 17
KeyUp "A", 1
Delay 16
KeyUp "Ctrl", 1
Delay 42
KeyDown "Delete", 1
Delay 10
KeyUp "Delete", 1
MoveTo 235, 887
Delay 10
LeftClick 1
FindPic 0,0,1024,768,"D:\My Documents\合计0行.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MessageBox "找到了"
EndScript
Else
MoveTo 1383, 810
Delay 10
LeftClick 1
End If 展开
MoveTo 352, 220
MoveTo 304, 177
Delay 31
LeftClick 1
Delay 10
KeyDown "Ctrl", 1
Delay 18
KeyDown "C", 1
Delay 12
KeyUp "C", 1
KeyUp "Ctrl", 1
MoveTo 396, 895
Delay 7
LeftClick 1
MoveTo 425, 295
Delay 9
LeftDown 1
LeftClick 1
Delay 16
LeftUp 1
Delay 7
KeyDown "Ctrl", 1
Delay 14
KeyDown "V", 1
Delay 31
KeyUp "Ctrl", 1
KeyUp "V", 1
Delay 8
KeyDown "Enter", 1
Delay 15
KeyUp "Enter", 1
Delay 8
LeftDown 1
LeftClick 1
LeftUp 1
Delay 5
LeftDown 1
LeftClick 1
LeftUp 1
MoveTo 448, 292
Delay 3
LeftDown 1
LeftClick 1
LeftUp 1
MoveTo 449, 300
Delay 28
LeftDown 1
LeftClick 1
LeftUp 1
Delay 14
LeftUp 1
LeftUp 1
Delay 29
LeftDown 1
LeftClick 1
LeftUp 1
Delay 6
KeyDown "Ctrl", 1
Delay 10
KeyDown "A", 1
Delay 17
KeyUp "A", 1
Delay 16
KeyUp "Ctrl", 1
Delay 42
KeyDown "Delete", 1
Delay 10
KeyUp "Delete", 1
MoveTo 235, 887
Delay 10
LeftClick 1
FindPic 0,0,1024,768,"D:\My Documents\合计0行.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MessageBox "找到了"
EndScript
Else
MoveTo 1383, 810
Delay 10
LeftClick 1
End If 展开
1个回答
展开全部
Rem q
Delay 1000
FindPic 0,0,1024,768,"Attachment:\神盾.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
ExitScript
End If
Goto q
Delay 1000
FindPic 0,0,1024,768,"Attachment:\神盾.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
ExitScript
End If
Goto q
追问
这样就会在那一个步骤循环找图了,我想要的是到那个步骤后就找图,找到就停止脚本,找不到的就继续下面的步骤,然后从头再运行
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询