赞
踩
- import pyautogui
-
- # 模拟按下 Control + Command
- pyautogui.keyDown('ctrl')
- pyautogui.keyDown('command')
-
- # 模拟按下 M 键
- pyautogui.press('m')
-
- # 释放 M 键
- pyautogui.keyUp('m')
-
- # 释放 Control 和 Command 键
- pyautogui.keyUp('ctrl')
- pyautogui.keyUp('command')
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。