Skip to content

Add 'click at current cursor position' target mode #48

Closed

Description

@TMHSDigital

Summary

The app can only click at a fixed X/Y. Comparable autoclickers default to "click at the current cursor position" and treat a fixed point as an option. Many users want to hover over something and press a hotkey, without picking coordinates first.

Why it matters

This is the most common way autoclickers are used, and the first thing many visitors will look for. Without it, every session needs a pick step first.

Evidence

  • autoclicker/core/click_engine.py:458-460 always calls pyautogui.moveTo(x, y) before clicking.
  • gui/sections/coordinates.py only offers X/Y entry and Pick Location.

Suggested approach

  • Add a "Target: ( ) Current cursor position ( ) Fixed location" radio in the Target section, persisted as target_mode.
  • In cursor mode, skip moveTo and the coordinate validation, and click wherever the cursor is.
  • Keep pause-when-unfocused and the failsafe working: the failsafe still applies, because pyautogui checks the cursor position on every call.
  • Session log records target=cursor.

Done when

  • Cursor mode clicks at the live cursor position, with unit tests asserting that no moveTo is called.
  • Fixed mode behaves exactly as it does today.

Activity

  1. added
    enhancement
    priority: medium
    ux
    on Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority: mediumux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions