import pyautogui import time # locatel and press 3 dots x1, y2 = pyautogui.locateCenterOnScreen("dots.png") pyautogui.moveTo(x1, y2) pyautogui.click() # locate and press bin sleep(2) x2, y2 = pyautogui.locateCenterOnScreen("bin.png") pyautogui.moveTo(x2, y2) pyautogui.click()