usually marketed as robotic process automation (rpathese products are effectively no different than the python scripts you can make yourself with the pyautogui modulewhich has functions for simulating mouse movementsbutton clicksand mouse wheel scrolls this covers only subset of pyautogui' featuresyou can find the full documentation at installing the pyautogui module the pyautogui module can send virtual keypresses and mouse clicks to windowsmacosand linux windows and macos users can simply use pip to install pyautogui howeverlinux users will first have to install some software that pyautogui depends on open terminal window and enter the following commandssudo apt-get install scrot sudo apt-get install python -tk sudo apt-get install python -dev to install pyautoguirun pip install --user pyautogui don' use sudo with pipyou may install modules to the python installation that the operating system usescausing conflicts with any scripts that rely on its original configuration howeveryou should use the sudo command when installing applications with apt-get appendix has complete information on installing third-party modules to test whether pyautogui has been installed correctlyrun import pyautogui from the interactive shell and check for any error messages warning don' save your program as pyautogui py when you run import pyautoguipython will import your program instead of the pyautogui and you'll get error messages like attributeerrormodule 'pyautoguihas no attribute 'clicksetting up accessibility apps on macos as security measuremacos doesn' normally let programs control the mouse or keyboard to make pyautogui work on macosyou must set the program running your python script to be an accessibility application without this stepyour pyautogui function calls will have no effect whether you run your python programs from muidleor the terminalhave that application open then open the system preferences and go to the accessibility tab the currently open applications will appear under the "allow the apps below to control your computerlabel check