Skip to content

[feature request] Add support for pixelmatchescolor #61

Description

@Flyingbacen

Just curious if you'd be able to add this so that when writing something in pyautogui, I can just do import pydirectinput as pyautogui.
Currently I have to also import pyautogui to use the function, and it's the only function I commonly use not in pydirectinput. An alternative would also be nice if unable to implement this for whatever reason.

import pydirectinput
import pyautogui
def example():
    if pydirectinput.pixelmatchescolor(x, y, (r, g, b), tolerance=10):
        return True
    # will raise AttributeError
def secondexample():
    if pyautogui.pixelmatchescolor(x, y, (r, g, b), tolerance=10):
        return True
    # won't do that

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions