pyautogui The pyautogui module has functions for simulating mouse movements, button clicks, and scrolling the mouse wheel. For examples on using this module, refer : https://automatetheboringstuff.com/chapter18/