
按键精灵中一个脚本里弄了两个找图的代码,但是只执行了第一个,第二个没有执行。怎么办?
我看过循环找图了不会吧循环放哪里FindPic0,0,1024,768,"Attachment:\1.bmp",0.5,intX,intYIfintX>0AndintY>...
我看过循环找图了 不会吧循环放哪里
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.5,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intx, inty
Delay 2000
LeftClick 2
Delay 2000
End If
FindPic 0,0,1024,768,"Attachment:\2.bmp",0.1,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intx, inty
Delay 2000
LeftClick 2
End If
求指点 展开
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.5,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intx, inty
Delay 2000
LeftClick 2
Delay 2000
End If
FindPic 0,0,1024,768,"Attachment:\2.bmp",0.1,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intx, inty
Delay 2000
LeftClick 2
End If
求指点 展开
3个回答
展开全部
你的图片要添加到附件里面,然后看一下名字有没有错误。还有一种可能就是延迟问题,你可以加个标记,我把源码给你打上。
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.5,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intx, inty
Delay 2000
LeftClick 2
Delay 2000
End If
Rem 寻找二图
FindPic 0,0,1024,768,"Attachment:\2.bmp",0.1,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intx, inty
Delay 2000
LeftClick 2
Else
Goto 寻找二图
End If
看看行不?不行再说
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.5,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intx, inty
Delay 2000
LeftClick 2
Delay 2000
End If
Rem 寻找二图
FindPic 0,0,1024,768,"Attachment:\2.bmp",0.1,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intx, inty
Delay 2000
LeftClick 2
Else
Goto 寻找二图
End If
看看行不?不行再说
追问
可以了 我想问下这是什么方法 ??

2024-09-19 广告
随着AI技术的飞速发展,如今市面上涌现了许多实用易操作的AI生成工具1、简介:AiPPT: 这款AI工具智能理解用户输入的主题,提供“AI智能生成”和“导入本地大纲”的选项,生成的PPT内容丰富多样,可自由编辑和添加元素,图表类型包括柱状图...
点击进入详情页
本回答由AiPPT提供
展开全部
End If后面要Delay的
追问
貌似不行 调试都不可以 错误了
追答
求采纳。。。采纳率会被拉下来。。。谢谢
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你确定第二个图能找到?
追问
确定 就是想打开我的电脑然后点击D盘
追答
那你说“只执行了第一个,第二个没有执行”是什么意思。我不明白了。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询