pyautogui

作者: sunland_0416 | 来源:发表于2020-11-18 15:40 被阅读0次

    鼠标自动点击脚本
    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()
    

    相关文章

      网友评论

          本文标题:pyautogui

          本文链接:https://www.haomeiwen.com/subject/sluciktx.html