diff --git a/main.py b/main.py index 3d02712..b43810a 100644 --- a/main.py +++ b/main.py @@ -1657,6 +1657,18 @@ class ea_fucking(): if location: pyautogui.click(pyautogui.center(location)) for i in range(6): + try: + # towfacktor.PNG + location = pyautogui.locateOnScreen(os.path.join(self.path_png_file,r'towfacktor.PNG'), confidence=0.8) + if location: + pyautogui.click(pyautogui.center(location)) + pyautogui.press('tab') + pyautogui.press('enter') + print('find towfacktor !!!!!!!!!!!!') + break + # print('find towfacktor !!!!!!!!!!!!') + except: + pass pyautogui.press('tab') sleep(0.5) pyautogui.press('enter')