按键精灵脚本条件跳转要怎么写
我想把下面两段找图脚本进行合并条件跳转要怎么搞?比如10分钟1脚本中的图都未找到跳转到脚本2,脚本2运行一次后跳转回1脚本如下脚本1FindPic0,0,1920,108...
我想把下面两段找图脚本进行合并条件跳转要怎么搞?
比如 10分钟 1脚本中的图都未找到 跳转到脚本2,脚本2运行一次后跳转回1
脚本如下
脚本1
FindPic 0,0,1920,1080,"Attachment:\zzg.bmp",0.6,intX,intY
If intX > 0 And intY > 0 Then
Delay 1000
MoveTo intX, intY
Delay 1000
LeftClick 1
End If
FindPic 0,0,1920,1080,"Attachment:\jx.bmp",0.6,intX,intY
If intX > 0 And intY > 0 Then
Delay 1000
MoveTo intX, intY
Delay 1000
LeftClick 1
End If
FindPic 0,0,1920,1080,"Attachment:\jg.bmp",0.6,intX,intY
If intX > 0 And intY > 0 Then
Delay 1000
MoveTo intX, intY
Delay 1000
LeftClick 1
End If
脚本2
FindPic 0,0,1920,1080,"Attachment:\hd.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 1000
LeftClick 1
End If
FindPic 0,0,1920,1080,"Attachment:\zghdh.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY+170
Delay 1000
LeftClick 1
End If 展开
比如 10分钟 1脚本中的图都未找到 跳转到脚本2,脚本2运行一次后跳转回1
脚本如下
脚本1
FindPic 0,0,1920,1080,"Attachment:\zzg.bmp",0.6,intX,intY
If intX > 0 And intY > 0 Then
Delay 1000
MoveTo intX, intY
Delay 1000
LeftClick 1
End If
FindPic 0,0,1920,1080,"Attachment:\jx.bmp",0.6,intX,intY
If intX > 0 And intY > 0 Then
Delay 1000
MoveTo intX, intY
Delay 1000
LeftClick 1
End If
FindPic 0,0,1920,1080,"Attachment:\jg.bmp",0.6,intX,intY
If intX > 0 And intY > 0 Then
Delay 1000
MoveTo intX, intY
Delay 1000
LeftClick 1
End If
脚本2
FindPic 0,0,1920,1080,"Attachment:\hd.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 1000
LeftClick 1
End If
FindPic 0,0,1920,1080,"Attachment:\zghdh.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY+170
Delay 1000
LeftClick 1
End If 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏15(财富值+成长值)
1个回答
展开全部
Rem 脚本1
FindPic 0,0,1920,1080,"Attachment:\zzg.bmp",0.6,intX,intY
If intX > 0 And intY > 0 Then
Delay 1000
MoveTo intX, intY
Delay 1000
LeftClick 1
Goto 脚本1
End If
FindPic 0,0,1920,1080,"Attachment:\jx.bmp",0.6,intX,intY
If intX > 0 And intY > 0 Then
Delay 1000
MoveTo intX, intY
Delay 1000
LeftClick 1
Goto 脚本1
End If
FindPic 0,0,1920,1080,"Attachment:\jg.bmp",0.6,intX,intY
If intX > 0 And intY > 0 Then
Delay 1000
MoveTo intX, intY
Delay 1000
LeftClick 1
Goto 脚本1
End If
Rem 脚本2
FindPic 0,0,1920,1080,"Attachment:\hd.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 1000
LeftClick 1
End If
FindPic 0,0,1920,1080,"Attachment:\zghdh.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY+170
Delay 1000
LeftClick 1
End If
Goto 脚本1
FindPic 0,0,1920,1080,"Attachment:\zzg.bmp",0.6,intX,intY
If intX > 0 And intY > 0 Then
Delay 1000
MoveTo intX, intY
Delay 1000
LeftClick 1
Goto 脚本1
End If
FindPic 0,0,1920,1080,"Attachment:\jx.bmp",0.6,intX,intY
If intX > 0 And intY > 0 Then
Delay 1000
MoveTo intX, intY
Delay 1000
LeftClick 1
Goto 脚本1
End If
FindPic 0,0,1920,1080,"Attachment:\jg.bmp",0.6,intX,intY
If intX > 0 And intY > 0 Then
Delay 1000
MoveTo intX, intY
Delay 1000
LeftClick 1
Goto 脚本1
End If
Rem 脚本2
FindPic 0,0,1920,1080,"Attachment:\hd.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 1000
LeftClick 1
End If
FindPic 0,0,1920,1080,"Attachment:\zghdh.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY+170
Delay 1000
LeftClick 1
End If
Goto 脚本1
追问
这样写的意思是 找到点击后就跳转回1 找不到就结束是吧 继续下一段
是这样理解的么??新手多多指教
追答
en
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询