pyautogui

2020-11-18  本文已影响0人  sunland_0416

鼠标自动点击脚本
pip install pyautogui
Successfully installed PyTweening-1.0.3 mouseinfo-0.1.3 pyautogui-0.9.52 pygetwindow-0.0.9 pymsgbox-1.0.9 pyperclip-1.8.1 pyrect-0.1.4 pyscreeze-0.1.26

import time
import pyautogui

x, y = 302, 534
delay_seconds = 2  # 将鼠标移动到指定坐标的间隔时间

time.sleep(8)  # 延迟8秒
pyautogui.moveTo(x, y, duration=delay_seconds )

time.sleep(3)  # 延迟3秒
i = 60

while i:
    i -= 1
    time.sleep(5)
    pyautogui.click()
上一篇 下一篇

猜你喜欢

热点阅读