You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Launching the app twice registers the F6/F7/ESC global hotkeys twice. One F6 press then starts two click loops at the same target, which doubles the click rate. Each instance's runaway guard only counts its own clicks, so neither one trips. Both instances also write the same settings file.
Evidence
autoclicker/app/hotkeys.py — keyboard.add_hotkey registrations are process-local and don't conflict across processes.
autoclicker/main.py — no instance check.
core/settings_paths.py — both processes write %APPDATA%\WindowsAutoclicker\autoclicker_settings.json (atomic, but last writer wins).
Suggested approach
At startup, create a named mutex (win32event.CreateMutex(None, False, "Local\TMHSDigital.WindowsAutoclicker"); pywin32 is already a dependency). If GetLastError() == ERROR_ALREADY_EXISTS, bring the existing window to the front (FindWindow + SetForegroundWindow) and exit.
Done when
A second launch focuses the first instance and exits, and a unit test covers the already-running branch with the win32 calls mocked.
Activity