pyautogui的简单基础
pyautogui的简单基础
安装pyautogui
1 | pip install pyautogui |
查看屏幕大小
1 | import pyautogui as pag |
输出鼠标位置
1 | import pyautogui as pag |
鼠标点击
1 | import pyautogui as pag |
使用键盘的按键
1 | import pyautogui as pag |
鼠标移动
1 | import pyautogui as pag |
简单写一个实时打印鼠标位置的脚本
1 | import pyautogui as pag |
输入文字
1 | import pyautogui as pag |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 0xchang's Blog!