0

I am getting error with "Pyautogui.pixelMatchesColor" what do I need to do to make it work please?

Here is the code if pyautogui.pixelMatchesColor(1400, 1330, (209, 179, 24), tolerance=10): time.sleep(0.1) pyautogui.locateOnScreen('10.png') pyautogui.click('10.png') else: pass 

7th Jun 2021, 1:10 PM
Hasan
Hasan - avatar
5 Answers
+ 1
God damn!! I just found out why it wasn't working. You need to have "opencv-python" and "pillow" installed to use the word confidence.
7th Jun 2021, 9:19 PM
Hasan
Hasan - avatar
0
What error you are getting??
7th Jun 2021, 1:17 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
7th Jun 2021, 1:36 PM
Hasan
Hasan - avatar
0
Here is your solution: https://stackoverflow.com/questions/59146513/pyautogui-and-pyscreeze-crash-with-windll-user32-releasedc-failed Either try different Python version or modify orignal code of pyscreeze
7th Jun 2021, 2:29 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
0
That's the word I used else where.
7th Jun 2021, 9:20 PM
Hasan
Hasan - avatar