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') #模拟组合键 发送消息
2024-02-10 12:37:58
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') #模拟组合键 发送消息