-1
import pyautogui
life50 = pyautogui.pixelMatchesColor(663, 306, (25, 195, 25))
if: life50
pyautogui.press('f1')
else:
pyautogui.screenshot('C:/Users/ANDRE/Desktop/Imagens')
I am learning to code in python and the above code is not working and I can not identify the error, someone can help me?
Read How to debug small programs
– Augusto Vasques
Altere of
if: life50
forif life50:
– Paulo Marques