Reputation: 426
I am messing around with PyAutoGUI, and I am learning about the hotkey
function. I want it to press Command+R, but I can't find the keyword (like control
becomes ctrl
). What is it?
I am using Pycharm. I am fully aware that this would lead to a forever loop.
I am learning from this tutorial.
Thanks for help!
Upvotes: 9
Views: 10255
Reputation: 6441
The keyword for command is just command
.
So pyautogui.hotkey('command', 'r')
should work fine.
Upvotes: 15