Creating a basic auto clicker in python

Try using pyautogui. I have used this in several projects. It has huge functionalities with less coding. For example, if you want to click on the middle of the screen, simply do:

import pyautogui
width, height = pyautogui.size(), height/2)

In your case you may use time module to synchronize the actions.

Here is the cheat sheet of pyautogui.

Leave a Comment