close
import time
#系統準備時間
time.sleep(2)
#取得幫助菜單位置
help_pos = pyautogui.locateOnScreen("help_btn.png")
#找到圖片位置的中心點座標
goto_pos = pyautogui.center(help_pos)
#移動滑鼠
pyautogui.moveTo(goto_pos,duration=1)
#點擊
pyautogui.click()
#向下移動相對位置
pyautogui.moveRel(None,315,duration=1)
pyautogui.click()
time.sleep(1)
ok_pos=pyautogui.locateOnScreen("ok_btn.png")
goto_pos = pyautogui.center(ok_pos)
pyautogui.moveTo(goto_pos,duration=1)
pyautogui.click()
全站熱搜