Pyautogui: Press Two Keys at the Same Time
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...
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')
1 Answer
I know this question is old, but you can get the same result by doing:
pyautogui.hotkey('shift', 'end')