<i id='9t7Gx'><tr id='9t7Gx'><dt id='9t7Gx'><q id='9t7Gx'><span id='9t7Gx'><b id='9t7Gx'><form id='9t7Gx'><ins id='9t7Gx'></ins><ul id='9t7Gx'></ul><sub id='9t7Gx'></sub></form><legend id='9t7Gx'></legend><bdo id='9t7Gx'><pre id='9t7Gx'><center id='9t7Gx'></center></pre></bdo></b><th id='9t7Gx'></th></span></q></dt></tr></i><div id='9t7Gx'><tfoot id='9t7Gx'></tfoot><dl id='9t7Gx'><fieldset id='9t7Gx'></fieldset></dl></div>

    1. <small id='9t7Gx'></small><noframes id='9t7Gx'>

      • <bdo id='9t7Gx'></bdo><ul id='9t7Gx'></ul>
    2. <legend id='9t7Gx'><style id='9t7Gx'><dir id='9t7Gx'><q id='9t7Gx'></q></dir></style></legend>
    3. <tfoot id='9t7Gx'></tfoot>

        定位屏幕上的颜色位置?

        Locate color position on screen?(定位屏幕上的颜色位置?)
      1. <small id='J9993'></small><noframes id='J9993'>

            <tbody id='J9993'></tbody>
        • <tfoot id='J9993'></tfoot>

            1. <legend id='J9993'><style id='J9993'><dir id='J9993'><q id='J9993'></q></dir></style></legend>
                  <bdo id='J9993'></bdo><ul id='J9993'></ul>

                  <i id='J9993'><tr id='J9993'><dt id='J9993'><q id='J9993'><span id='J9993'><b id='J9993'><form id='J9993'><ins id='J9993'></ins><ul id='J9993'></ul><sub id='J9993'></sub></form><legend id='J9993'></legend><bdo id='J9993'><pre id='J9993'><center id='J9993'></center></pre></bdo></b><th id='J9993'></th></span></q></dt></tr></i><div id='J9993'><tfoot id='J9993'></tfoot><dl id='J9993'><fieldset id='J9993'></fieldset></dl></div>
                  本文介绍了定位屏幕上的颜色位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想用pyautogui单击屏幕上的特定颜色,但为此我需要它的位置,并且我找不到有关该主题的任何有用信息。我正在尝试制作一个钢琴瓷砖自动点击器,为此,我考虑过识别瓷砖的颜色并点击它。

                  推荐答案

                  您可以使用pyautogui

                  查找颜色位置
                  import pyautogui
                  
                  color = (255, 255, 255)
                  
                  s = pyautogui.screenshot()
                  for x in range(s.width):
                      for y in range(s.height):
                          if s.getpixel((x, y)) == color:
                              pyautogui.click(x, y)  # do something here
                  

                  这篇关于定位屏幕上的颜色位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  groupby multiple coords along a single dimension in xarray(在xarray中按单个维度的多个坐标分组)
                  Group by and Sum in Pandas without losing columns(Pandas中的GROUP BY AND SUM不丢失列)
                  Group by + New Column + Grab value former row based on conditionals(GROUP BY+新列+基于条件的前一行抓取值)
                  Groupby and interpolate in Pandas(PANDA中的Groupby算法和插值算法)
                  Pandas - Group Rows based on a column and replace NaN with non-null values(PANAS-基于列对行进行分组,并将NaN替换为非空值)
                  Grouping pandas DataFrame by 10 minute intervals(按10分钟间隔对 pandas 数据帧进行分组)

                  <small id='D8H8S'></small><noframes id='D8H8S'>

                    <bdo id='D8H8S'></bdo><ul id='D8H8S'></ul>
                        <tbody id='D8H8S'></tbody>

                          <i id='D8H8S'><tr id='D8H8S'><dt id='D8H8S'><q id='D8H8S'><span id='D8H8S'><b id='D8H8S'><form id='D8H8S'><ins id='D8H8S'></ins><ul id='D8H8S'></ul><sub id='D8H8S'></sub></form><legend id='D8H8S'></legend><bdo id='D8H8S'><pre id='D8H8S'><center id='D8H8S'></center></pre></bdo></b><th id='D8H8S'></th></span></q></dt></tr></i><div id='D8H8S'><tfoot id='D8H8S'></tfoot><dl id='D8H8S'><fieldset id='D8H8S'></fieldset></dl></div>

                            <legend id='D8H8S'><style id='D8H8S'><dir id='D8H8S'><q id='D8H8S'></q></dir></style></legend>
                          • <tfoot id='D8H8S'></tfoot>