按键精灵吧 关注:499,321贴子:1,005,033
  • 6回复贴,共1

怎么多个同样的颜色找到第一个后找到第二个

只看楼主收藏回复




IP属地:广东1楼2022-02-11 10:07回复
    图像识别


    IP属地:贵州来自Android客户端3楼2022-02-11 22:32
    回复
      找到后以这个找到的坐标起点在开始找呗


      IP属地:浙江来自Android客户端4楼2022-02-11 22:52
      收起回复
        IF嵌套


        IP属地:内蒙古5楼2022-02-12 07:03
        回复
          参考一图多坐标 修改找图为找色命令即可
          Dim img,startx,starty,endx,endy,count
          Dim intX, intY
          img = "Attachment:1.png"'改成自己图片名称
          startx = 1 : starty = 1 : endx = 720 : endy = 1028 : count = 0'前4参数改成自己分辨率
          Do
          FindPic startx, starty, endx, endy, img, "000000", 0, 0.9, intX, intY
          If intx = - 1 Then
          If startx=0 Then Exit do //查找结束
          starty = starty + 1 : startx = 0
          Else
          If inty = starty or startx = 0 Then
          startx = intx + 1:starty=inty
          count = count + 1
          TracePrint intX, intY
          Else
          startx = 0 : starty = starty + 1
          End If
          End If
          Loop


          IP属地:广东6楼2022-02-13 00:18
          回复