import pyautogui pyautogui.moveTo(423,464, duration=0.1) RGB = (242,225,174) while RGB != pyautogui.pixel(423,464): pyautogui.click() print("Acabei")