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