Python pyautogui
From wikinotes
pyautogui exposes cross-platform mouse/keyboard/window controls. Like autohotkey, but totally portable.
Documentation
official docs https://pyautogui.readthedocs.io/en/latest/introduction.html github https://github.com/asweigart/pyautogui
Usage
Usage is extremely simple. For example:
pyautogui.keyDown('shift') pyautogui.press(['left', 'left', 'left', 'left', 'left', 'left']) pyautogui.keyUp('shift') pyautogui.hotkey('ctrl', 'c')