I am using pyautogui
to simulate pressing shift and end at the same time - when I type this myself, it highlights all the entries, however when I do it via the code below, it just moves to the end file - not highlighting every component, so it seems like shift isn't being pressed. Was wondering if anyone had any ideas?
pyautogui.keyDown('shift')
pyautogui.keyDown('end')
pyautogui.keyUp('end')
pyautogui.keyUp('shift')
I know this question is old, but you can get the same result by doing:
pyautogui.hotkey('shift', 'end')
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