Pyautogui - Need to hold shift and click
问题 How does one hold shift and and click with the mouse using pyautogui? pyautogui.hotkey('shift', click(1611, 600)) have tried the line above. But it doesn't work 回答1: The hotkey() function only works with keys. To shift-click, you need code like this: import pyautogui pyautogui.keyDown('shift') pyautogui.click() pyautogui.keyUp('shift') 来源: https://stackoverflow.com/questions/52321602/pyautogui-need-to-hold-shift-and-click