Nv7
Nv7

Reputation: 426

What is the hotkey for command in Pyautogui?

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

Answers (1)

Loocid
Loocid

Reputation: 6441

The keyword for command is just command.

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

Documentation

Upvotes: 15

Related Questions