Skip to content

Double-click is ignored for right and middle buttons #51

Closed

Description

@TMHSDigital

Summary

Choosing Right or Middle with Double click silently performs a single click. Only the left button implements double-click. The UI allows the combination and nothing reports it.

Evidence

autoclicker/core/click_engine.py:464-473:

if mouse_button == "left":
    if click_type == "double":
        pyautogui.doubleClick()
    ...
elif mouse_button == "right":
    pyautogui.rightClick()
elif mouse_button == "middle":
    pyautogui.middleClick()

Reproduced: right + double → exactly one rightClick() call.

Suggested approach

Use pyautogui.click(button=mouse_button, clicks=2 if click_type == "double" else 1, interval=…) for every button, and decide whether a double click counts as 1 or 2 toward max_clicks and the CPS guard (document either way). Add parametrized tests for all 6 combinations.

Done when

All button × type combinations emit the expected events (tests), and the counting rule is documented.

Activity

  1. added
    bug
    priority: low
    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

    bugpriority: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions