Update main.py

test
This commit is contained in:
2025-11-07 11:33:13 +00:00
parent 5506ac101d
commit 67827d14ad

12
main.py
View File

@@ -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')