https://github.com/arvid-berndtsson/auto-clicker
A Python-based auto clicker tool that automates mouse clicking based on keyboard inputs, supporting various modes like toggle, hold, double click, random click, and burst.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.6%) to scientific vocabulary
Keywords
Repository
A Python-based auto clicker tool that automates mouse clicking based on keyboard inputs, supporting various modes like toggle, hold, double click, random click, and burst.
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 1
Topics
Metadata Files
README.md
Arvid's Simple Auto Clicker
Table of Contents
Project Overview
This project is an Auto Clicker tool written in Python. The script automates mouse clicking based on keyboard inputs. It uses the keyboard library to detect key presses and the pyautogui library to simulate mouse clicks. This tool can be particularly useful for repetitive tasks that require frequent mouse clicks.
Features
- Toggle Mode: Press the
hkey to start clicking and press it again to stop. - Hold Mode: Press and hold the
hkey to continuously click the left mouse button. - Double Click Mode: Press and hold the
hkey to double click. - Random Click Mode: Press and hold the
hkey to click at random intervals. - Burst Mode: Press and hold the
hkey to click rapidly a specified number of times. - Stop Script: Press the
esckey to stop the script entirely. - Human-like Delays: Introduce randomness in clicking delays using
--min-delayand--max-delayarguments.
Files
main.py: The main script that runs the auto clicker.get_scancode.py: A helper script to retrieve scancode values for different keys.pyproject.toml: Poetry configuration file.requirements.txt: Lists the dependencies needed to run the project..gitignore: Specifies files and directories to be ignored by Git.
Setup and Installation
Using Poetry
- Clone the repository:
sh
git clone <repository-url>
cd auto-clicker-main
- Install Poetry:
sh
curl -sSL https://install.python-poetry.org | python3 -
- Install dependencies:
sh
poetry install
- Activate the virtual environment:
sh poetry shell
Using Virtual Environment and Pip (alternative)
- Clone the repository:
sh
git clone <repository-url>
cd auto-clicker-main
- Create a virtual environment (optional but recommended):
sh
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
- Install the required packages:
sh pip install -r requirements.txt
Usage
- Run the script in default hold mode:
sh
python main.py
- Run the script in toggle mode:
sh
python main.py toggle
- Run the script in double click mode:
sh
python main.py double
- Run the script in random click mode:
sh
python main.py random
- Run the script in burst mode:
sh
python main.py burst --burst-count 20
- Run the script with custom delays:
sh
python main.py --min-delay 0.01 --max-delay 0.1
- Instructions:
- In toggle mode, press the
hkey to start clicking and press it again to stop. - In hold mode, press and hold the
hkey to start clicking. - In double click mode, press and hold the
hkey to double click. - In random click mode, press and hold the
hkey to click at random intervals. - In burst mode, press and hold the
hkey to click rapidly a specified number of times. - Press the
esckey to stop the script in any mode. - Use
--min-delayand--max-delayto introduce randomness in the clicking delays to make the clicking more human-like.
- In toggle mode, press the
Code Improvements
Here are a few suggestions to enhance the code quality and functionality, which can also help impress future employers:
- Exception Handling:
- Add exception handling to manage unexpected errors gracefully.
- Logging:
- Implement logging instead of print statements for better monitoring and debugging.
- Configurable Parameters:
- Allow users to configure the keys and the delay time via command-line arguments or a configuration file.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Owner
- Name: Arvid Berndtsson
- Login: arvid-berndtsson
- Kind: user
- Location: Sweden
- Company: @LimeTip
- Website: https://arvidberndtsson.com
- Repositories: 1
- Profile: https://github.com/arvid-berndtsson
Based in Malmö, Sweden, I specialize in software development and digital sustainability. Founder of @LimeTip and Co-Founder of @merely-emissions
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0