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.

https://github.com/arvid-berndtsson/auto-clicker

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

autoclicker autohotkey pyautogui pyautogui-automation pyautogui-hotkey python python3
Last synced: 7 months ago · JSON representation

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
  • Host: GitHub
  • Owner: arvid-berndtsson
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 47.9 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Topics
autoclicker autohotkey pyautogui pyautogui-automation pyautogui-hotkey python python3
Created over 2 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License

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 h key to start clicking and press it again to stop.
  • Hold Mode: Press and hold the h key to continuously click the left mouse button.
  • Double Click Mode: Press and hold the h key to double click.
  • Random Click Mode: Press and hold the h key to click at random intervals.
  • Burst Mode: Press and hold the h key to click rapidly a specified number of times.
  • Stop Script: Press the esc key to stop the script entirely.
  • Human-like Delays: Introduce randomness in clicking delays using --min-delay and --max-delay arguments.

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

  1. Clone the repository:

sh git clone <repository-url> cd auto-clicker-main

  1. Install Poetry:

sh curl -sSL https://install.python-poetry.org | python3 -

  1. Install dependencies:

sh poetry install

  1. Activate the virtual environment: sh poetry shell

Using Virtual Environment and Pip (alternative)

  1. Clone the repository:

sh git clone <repository-url> cd auto-clicker-main

  1. Create a virtual environment (optional but recommended):

sh python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`

  1. Install the required packages: sh pip install -r requirements.txt

Usage

  1. Run the script in default hold mode:

sh python main.py

  1. Run the script in toggle mode:

sh python main.py toggle

  1. Run the script in double click mode:

sh python main.py double

  1. Run the script in random click mode:

sh python main.py random

  1. Run the script in burst mode:

sh python main.py burst --burst-count 20

  1. Run the script with custom delays:

sh python main.py --min-delay 0.01 --max-delay 0.1

  1. Instructions:
    • In toggle mode, press the h key to start clicking and press it again to stop.
    • In hold mode, press and hold the h key to start clicking.
    • In double click mode, press and hold the h key to double click.
    • In random click mode, press and hold the h key to click at random intervals.
    • In burst mode, press and hold the h key to click rapidly a specified number of times.
    • Press the esc key to stop the script in any mode.
    • Use --min-delay and --max-delay to introduce randomness in the clicking delays to make the clicking more human-like.

Code Improvements

Here are a few suggestions to enhance the code quality and functionality, which can also help impress future employers:

  1. Exception Handling:
  • Add exception handling to manage unexpected errors gracefully.
  1. Logging:
  • Implement logging instead of print statements for better monitoring and debugging.
  1. 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

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
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels