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
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')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With