Created on Thu Feb 27 09:04:56 2025
@author: jack
"""
import pyautogui
import datetime,time
x,y,w,h = pyautogui.locateOnScreen('b3.png')
p=(x1,y1)=pyautogui.center((x,y,w,h))
pyautogui.click(x1,y1)
x,y,w,h = pyautogui.locateOnScreen('b1.png')
p=(x1,y1)=pyautogui.center((x,y,w,h))
pyautogui.click(x1,y1)
x,y,w,h = pyautogui.locateOnScreen('b2.png')
p=(x1,y1)=pyautogui.center((x,y,w,h))
pyautogui.click(x1,y1)
time.sleep(3)
x,y,w,h = pyautogui.locateOnScreen('b6.png')
p=(x1,y1)=pyautogui.center((x,y,w,h))
pyautogui.click(x1,y1)
time.sleep(3)
x,y,w,h = pyautogui.locateOnScreen('b7.png')
p=(x1,y1)=pyautogui.center((x,y,w,h))
pyautogui.click(x1,y1)
time.sleep(3)
x,y,w,h = pyautogui.locateOnScreen('b8.png')
p=(x1,y1)=pyautogui.center((x,y,w,h))
pyautogui.click(x1,y1)
time.sleep(3)
x,y,w,h = pyautogui.locateOnScreen('b9.png')
p=(x1,y1)=pyautogui.center((x,y,w,h))
pyautogui.click(x1,y1)
td = datetime.datetime.now()
strtd = str(td.year)+ '-' + str(td.month) + '-' + str(td.day) + 'ex1'
pyautogui.typewrite(strtd)
time.sleep(3)
x,y,w,h = pyautogui.locateOnScreen('b10.png')
p=(x1,y1)=pyautogui.center((x,y,w,h))
pyautogui.click(x1,y1)
沒有留言:
張貼留言