Skip to content

[feature request] Add support for pixelmatchescolor #61

@Flyingbacen

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

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