自动化操作鼠标键盘

1
2
3
4
5
6
7
8
9
10
import pyautogui
pyautogui.moveTo(36,240,1,pyautogui.easeOutQuad)
pyautogui.moveTo(1683,126,1,pyautogui.easeOutQuad)
pyautogui.moveTo(1798,735,1,pyautogui.easeOutQuad)
pyautogui.moveTo(188,24,1,pyautogui.easeOutQuad)
pyautogui.click()
pyautogui.dragTo(257,556,duration=1,button='left')
pyautogui.typewrite(message='dongzixinshishazi',interval=0.5)
pyautogui.press('5')
pyautogui.press('1')