Repository navigation
Closed
Labels
bugSomething isn't workingpriority: mediumShould be addressed in the next release or twosafetyClick-safety behavior (stop paths, limits, failsafe)uxUser experience and UI
Description
Why it matters
The runaway guard is a good idea, but two details make it either frustrating or weaker than the README says:
- The ceiling can't be changed in the app. Anyone who wants more than 50 clicks per second (common for clicker games and stress testing) gets "Runaway guard: over 50 clicks per second", and the only fix is hand-editing
max_cps_ceilingin%APPDATA%\WindowsAutoclicker\autoclicker_settings.json. The Troubleshooting section explains the cause but there is no in-app control. - A double click counts as one. The engine sends
clicks=2but records one timestamp, so with Double selected the real rate of button presses can be twice the ceiling before the guard fires. The README says it "stops if more than 50 clicks land in any one second".
Evidence
autoclicker/gui/main_window.py:400readsmax_cps_ceilingstraight from settings;autoclicker/gui/sections/advanced.pyhas no field for it.autoclicker/core/click_engine.py:435and450-451: onepyautogui.click(..., clicks=2)call, thenself.click_count += 1and one_recent_click_ts.append(...).- README Safety and Troubleshooting sections.
Suggested approach
- Add a "Max clicks per second" entry under Advanced, Safety (0 = off). Confirm when it is set to 0, like the failsafe toggle. Validation already exists (
SettingsManager.validate_max_cps). - Count each press of a double click toward the guard (append two timestamps), or document clearly that the guard counts click actions. Counting presses is the safer reading.
- Optional: warn before starting when the planned rate obviously exceeds the ceiling (for example 0 ms interval with large bursts), so the guard is not the first feedback the user gets.
Done when
- The ceiling is editable in the UI, validated, persisted, and covered by a GUI test.
- With Double selected the guard trips at the documented rate; a unit test proves it.
- README Safety text matches the behavior.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingpriority: mediumShould be addressed in the next release or twosafetyClick-safety behavior (stop paths, limits, failsafe)uxUser experience and UI
Activity