This is a simple auto-clicker script in Python using the pynput library that can be toggled on and off with a specific key. It allows you to automate mouse clicks by continuously clicking the left mouse button.
These instructions will help you set up and run the auto-clicker on your system.
-
Python 3.x
-
pynputlibrary: You can install it usingpip:pip install pynput
-
Clone this repository or download the
auto_clicker.pyscript. -
Open a terminal or command prompt.
-
Navigate to the directory where you saved the
auto_clicker.pyscript. -
Run the script with Python:
python auto_clicker.py -
The auto-clicker will start running in the background. By default, it is turned off.
-
Press the "t" key to toggle the auto-clicker on or off. While it's on, it will repeatedly click the left mouse button.
You can customize the script by changing the toggle key or the click rate by modifying the following variables in the script:
TOGGLE_KEY: Change the key code to your preferred toggle key.time.sleep(0.001): You can adjust the delay between clicks (in seconds) to control the click rate.
-
Be aware of the terms of service for the applications or games you are using this auto-clicker with, as it may violate their policies.
-
Use the auto-clicker responsibly and avoid any activities that may cause harm or inconvenience to others.
Contributions are welcome. If you find a bug or have suggestions for improvements, please create an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
- This script is based on the
pynputlibrary for mouse and keyboard control. - Special thanks to the open-source community for their contributions.
Happy clicking!