close

介面.png

 

import time
#系統準備時間
time.sleep(2)

#取得幫助菜單位置
help_pos = pyautogui.locateOnScreen("help_btn.png")         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")      ok_btn.png
goto_pos = pyautogui.center(ok_pos)
pyautogui.moveTo(goto_pos,duration=1)
pyautogui.click()

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 阿亮 的頭像
    阿亮

    阿喨的部落格

    阿亮 發表在 痞客邦 留言(0) 人氣()