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
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.