Как щелкнуть правой кнопкой
>>> pyautogui.click(button='right') # right-click the mouse
Blushing Butterfly
>>> pyautogui.click(button='right') # right-click the mouse
import pyautogui # pip install pyautogui
# simulate a left-click with the mouse (at the current mouse position)
pyautogui.click(button='left')