Skip to content

Add hotkey-driven autoclicker#1

Open
domaingitshub wants to merge 1 commit into
mainfrom
codex/add-autoclicker-functionality
Open

Add hotkey-driven autoclicker#1
domaingitshub wants to merge 1 commit into
mainfrom
codex/add-autoclicker-functionality

Conversation

@domaingitshub
Copy link
Copy Markdown
Owner

Motivation

  • Provide a simple, configurable autoclicker CLI to automate repetitive clicking with hotkey control and optional duration and jitter settings.

Description

  • Add src/autoclicker.py implementing ClickConfig and AutoClicker using pynput to control the mouse and listen for hotkeys, with CLI flags for --interval, --jitter, --button, --duration, --toggle-hotkey, and --stop-hotkey.
  • Add README.md documenting installation, usage examples, and the default hotkeys (Ctrl+Alt+T to toggle and Ctrl+Alt+S to stop).
  • Add requirements.txt with pynput>=1.7.7 declared.

Testing

  • No automated tests were run.

Codex Task

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 52d3a49015

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/autoclicker.py
parser = argparse.ArgumentParser(description="Hotkey-controlled autoclicker.")
parser.add_argument("--interval", type=float, default=0.2, help="Seconds between clicks.")
parser.add_argument("--jitter", type=float, default=0.0, help="Random +/- jitter in seconds.")
parser.add_argument("--button", type=parse_button, default="left", help="left/right/middle")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Parse default --button to a mouse.Button

When --button is omitted, argparse does not apply type=parse_button to the default, so args.button becomes the raw string "left". That string is passed into mouse.Controller.click, which expects a mouse.Button enum and will raise at runtime (or behave unexpectedly) when the default path is used. This only occurs for the default case, so users who don’t specify --button will hit it immediately.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant