What is the hotkey for command in Pyautogui?

Viewed 4219

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!

1 Answers

The keyword for command is just command.

So pyautogui.hotkey('command', 'r') should work fine.

Documentation

Related