Skip to main content
 首页 » 编程设计

python之Pyautogui 命令的热键是什么

2024年08月13日36xxx_UU

我正在摆弄 PyAutoGUI,我正在学习 hotkey 功能。我想让它按 Command+R,但我找不到关键字(比如 control 变成 ctrl)。这是什么?

我正在使用 Pycharm。我完全知道这会导致一个永远的循环。

我正在学习this tutorial .

感谢您的帮助!

请您参考如下方法:

command 的关键字就是 command。

所以 pyautogui.hotkey('command', 'r') 应该可以正常工作。

Documentation