
按键精灵9中,有图片1和图片2,两个图片任意一张出现则执行命令,改语句要如何实现?
展开全部
//方法一
Rem 找图
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.9,int1X,int1Y
If int1X < 0 Then
FindPic 0,0,1024,768,"Attachment:\2.bmp",0.9,int2X,int2Y
If int2X < 0 Then
Delay 1000
Goto 找图
End If
End If
MoveTo 1022, 641
Delay 200
LeftClick 1
//方法二
Rem 找图
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.9,int1X,int1Y
FindPic 0,0,1024,768,"Attachment:\2.bmp",0.9,int2X,int2Y
If int1X < 0 and int2X < 0 Then
Delay 1000
Goto 找图
Else
MoveTo 1022, 641
Delay 200
LeftClick 1
End If
Rem 找图
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.9,int1X,int1Y
If int1X < 0 Then
FindPic 0,0,1024,768,"Attachment:\2.bmp",0.9,int2X,int2Y
If int2X < 0 Then
Delay 1000
Goto 找图
End If
End If
MoveTo 1022, 641
Delay 200
LeftClick 1
//方法二
Rem 找图
FindPic 0,0,1024,768,"Attachment:\1.bmp",0.9,int1X,int1Y
FindPic 0,0,1024,768,"Attachment:\2.bmp",0.9,int2X,int2Y
If int1X < 0 and int2X < 0 Then
Delay 1000
Goto 找图
Else
MoveTo 1022, 641
Delay 200
LeftClick 1
End If
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
用大漠插件吧
追问
不懂那个插件,按键精灵不能达到这个要求吗?
FindPic 500,200,1280,768,"Attachment:\图1.bmp",0.1,intX,intY
If intX > 0 And intY > 0 Then
MoveTo 1022, 641
Delay 200
LeftClick 1 寻找单个图片并执行命令的语言如上,需要怎样修改达到要求?谢谢解答
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询