import pyautogui import time from time import sleep import pyscreeze def openchrome(): sleep(5) chromeIcon = pyautogui.locateCenterOnScreen(\'C:\\images\\PngItem