|
| 1 | +# Auto Clicker |
| 2 | + |
| 3 | +A Python automation tool that allows you to automatically click the mouse at rapid intervals. This is useful for repetitive clicking tasks and can be controlled via keyboard hotkeys. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +- Start and stop automatic clicking with keyboard hotkeys |
| 8 | +- Adjustable click interval (currently set to 1ms between clicks) |
| 9 | +- Simple keyboard controls for easy on/off toggling |
| 10 | +- Minimal resource usage |
| 11 | + |
| 12 | +## Requirements |
| 13 | + |
| 14 | +- Python 3.x |
| 15 | +- pyautogui library |
| 16 | +- keyboard library |
| 17 | + |
| 18 | +## Installation |
| 19 | + |
| 20 | +Install the required dependencies using pip: |
| 21 | + |
| 22 | +```bash |
| 23 | +pip install -r requirements.txt |
| 24 | +``` |
| 25 | + |
| 26 | +## How to Use |
| 27 | + |
| 28 | +1. Run the script by executing the `auto_clicker.py` file: |
| 29 | + |
| 30 | +```bash |
| 31 | +python auto_clicker.py |
| 32 | +``` |
| 33 | + |
| 34 | +2. The program will start and display instructions: |
| 35 | + - Press `'S'` to **start** the auto clicker |
| 36 | + - Press `'E'` to **stop** the auto clicker |
| 37 | + - Press `'Q'` to **quit** the program |
| 38 | + |
| 39 | +3. Once started (by pressing 'S'), the auto clicker will automatically perform mouse clicks at the current cursor position at fixed intervals (Can be edited in the code). |
| 40 | + |
| 41 | +4. Press 'E' to stop the clicking, and press 'Q' to exit the program entirely. |
| 42 | + |
| 43 | +## Caution |
| 44 | + |
| 45 | +⚠️ **WARNING**: Use this tool responsibly. Automated clicking can: |
| 46 | +- Interfere with other applications |
| 47 | +- Cause unintended actions if not carefully controlled |
| 48 | +- May violate terms of service for certain applications or games |
| 49 | + |
| 50 | +Always ensure you have full control over what the auto clicker is doing before starting it. |
| 51 | + |
| 52 | +## How It Works |
| 53 | + |
| 54 | +The script uses the following libraries: |
| 55 | + |
| 56 | +- **pyautogui**: For performing automated mouse clicks |
| 57 | +- **keyboard**: For detecting keyboard hotkey presses to control the clicker |
| 58 | + |
| 59 | +The program runs in an infinite loop, continuously checking if the 'q' key is pressed (to exit) and performing clicks when the `clicking` flag is set to `True`. |
0 commit comments