Skip to content

Add a cancellable start countdown for button and tray starts #74

Closed

Description

@TMHSDigital

Why it matters

When a run starts from the Start button or the tray menu, clicking begins immediately while the user's hand is still on the mouse and the target window is behind the autoclicker. A short, visible countdown is a standard feature in autoclickers because it makes the button path safe and predictable, and it pairs naturally with Pause when unfocused (the user gets time to bring the target window to the front).

Rationale

  • main_window.py start_clicking starts the engine synchronously on button press; there is no delay option in DEFAULT_SETTINGS.
  • The status bar and tray tooltip already exist to show "Starting in 3...".
  • _stop_event.wait already gives an interruptible delay, so Stop / Emergency during the countdown are trivial to honor.

Suggested approach

  • Add start_delay_seconds (default 0 for hotkey starts, e.g. 3 for button and tray starts; or a single setting with a "button only" checkbox) under Advanced.
  • During the countdown show "Starting in N..." with the alert color, keep Stop enabled, and let Stop / Emergency / the hotkeys cancel it with a "Start cancelled" status and no session-log start line.
  • Optionally minimize to tray when the countdown begins if minimize to tray is on.

Done when

  • Button start with a delay counts down visibly, can be cancelled by every stop path, and begins clicking only after the countdown.
  • Validated, persisted, tested, and listed in the README settings table.

Activity

  1. added
    priority: medium
    safety
    ux
    feature
    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

    featurepriority: mediumsafetyux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions