python自动化发QQ消息

1.安装三方python包,pyautogui

pip install pyautogui

2.导入包

3.输入代码

import pyautogui as gui

gui.hotkey('ctrl','alt','z') #模拟组合键 打开QQ快捷键

for i in range(1,100):
    gui.typewrite(message='!',)
    gui.hotkey('ctrl','enter') #模拟组合键 发送消息
posted @ 2020-03-12 13:58  心脏鼓点  阅读(2834)  评论(3编辑  收藏  举报