JC

· · 个人记录

JC之自动发犇

# python -m pip install pyautogui -i https://pypi.tuna.tsinghua.edu.cn/simple
from pyautogui import *
import time

print('请打开浏览器 www.luogu.com.cn 首页,缩放比例调为 100%,鼠标放在犇犇输入框中,将我的关注(犇犇)放在页面最下方。完成后按下回车。')
input()

content = input('输入内容:')

while True:
    click(250, 700)
    typewrite(content, interval=0.1)
    click(250, 750)
    time.sleep(5.0)   # 防止关不掉