A simple Python auto-clicker that automatically clicks the mouse at a set interval.
- Clicks the mouse every 5 seconds
- Easy to stop by moving the mouse to the top-left corner of the screen (PyAutoGUI failsafe)
- Python 3.x
- pyautogui
-
Clone the repository:
git clone https://github.com/mghabin/auto-clicker.git cd auto-clicker -
Install the dependencies:
pip install -r requirements.txt
Run the script with Python:
python clicker.pyThe auto-clicker will start clicking at the current mouse position every 5 seconds.
To stop: Move your mouse to the top-left corner of the screen. PyAutoGUI's built-in failsafe will raise an exception and exit the program.
You can package the script into a standalone executable using PyInstaller:
pyinstaller --onefile clicker.pyThe executable will be placed in the dist/ folder.
This project is open source. Feel free to use and modify it.