内容纲要
pip install pyautogui
#!/usr/bin/python
# -*- coding: UTF-8 -*-

import pyautogui
wh = pyautogui.size()
print(wh)

print(pyautogui.position())
pyautogui.click(10, 5)
pyautogui.scroll(200)

# for i in range(10):
#     pyautogui.moveTo(100, 100, duration=0.25)
#     pyautogui.moveTo(200, 100, duration=0.25)
#     pyautogui.moveTo(200, 200, duration=0.25)
#     pyautogui.moveTo(100, 200, duration=0.25)

发表评论

电子邮件地址不会被公开。 必填项已用*标注