按键精灵 区域多点找色 判断
在指定区域内多点找色找多点色a和多点色B找到多点色A则执行操作A找到多点色B则执行操作B这个怎么编写啊谢谢大神回答...
在指定区域内 多点找色 找多点色a和多点色B 找到多点色A 则执行操作A 找到多点色B 则执行操作B
这个怎么编写啊 谢谢大神回答 展开
这个怎么编写啊 谢谢大神回答 展开
展开全部
XY=Plugin.Color.FindMutiColorEx(0,0,1024,768,"D2CABF","1|1|D2CABF,3|5|D2CABF,3|6|D2CABF",1,0)
//多点找色A
ZB = InStr(XY,"|")
X = Clng(Left(XY, ZB - 1)): Y = Clng(Right(XY, Len(XY) - ZB))
If X > 0 and Y > 0 Then
Call A
//如果多点A找到则执行操作A,否则找多点B
Else
XY=Plugin.Color.FindMutiColorEx(0,0,1024,768,"D2CABF","1|1|D2CABF,3|5|D2CABF,3|6|D2CABF",1,0)
//多点找色B
ZB = InStr(XY,"|")
X = Clng(Left(XY, ZB - 1)) : Y = Clng(Right(XY, Len(XY) - ZB))
If X > 0 and Y > 0 Then
Call B
End if
End If
Sub A
LeftClick 1
End Sub
Sub b
RightClick 1
End Sub
//多点找色A
ZB = InStr(XY,"|")
X = Clng(Left(XY, ZB - 1)): Y = Clng(Right(XY, Len(XY) - ZB))
If X > 0 and Y > 0 Then
Call A
//如果多点A找到则执行操作A,否则找多点B
Else
XY=Plugin.Color.FindMutiColorEx(0,0,1024,768,"D2CABF","1|1|D2CABF,3|5|D2CABF,3|6|D2CABF",1,0)
//多点找色B
ZB = InStr(XY,"|")
X = Clng(Left(XY, ZB - 1)) : Y = Clng(Right(XY, Len(XY) - ZB))
If X > 0 and Y > 0 Then
Call B
End if
End If
Sub A
LeftClick 1
End Sub
Sub b
RightClick 1
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询