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
Global input handling depends on two libraries that haven't had a release since 2020: keyboard 0.13.5 (hotkeys, picker Esc) and mouse 0.7.1 (picker hook). PyAutoGUI (0.9.54, 2023) is also slow-moving. Both keyboard and mouse install low-level global hooks (WH_KEYBOARD_LL/WH_MOUSE_LL) and see every keystroke and mouse event system-wide. That's broader access than a few hotkeys need, it often triggers antivirus heuristics, and the libraries have open, unfixed issues with hook stalls and stuck keys.
Evidence
autoclicker/app/hotkeys.py — keyboard.add_hotkey for F6/F7/ESC.
Hotkeys: use Win32 RegisterHotKey on a small message-loop thread (pywin32 or ctypes). There's no global hook, the OS rejects conflicts (so registration failures can be reported, which also helps Configurable hotkeys and a start/stop toggle key #47), and it works from a non-elevated process.
Clicking (optional): wrap SendInput via ctypes behind the existing engine interface, which reduces the PyAutoGUI surface. Keep pyautogui's failsafe semantics, or re-implement the corner check.
Drop keyboard/mouse from pyproject.toml, requirements*.txt, and the README dependency list.
Done when
No unmaintained low-level hook library remains a runtime dependency, hotkeys and picker behave the same (tests mock the Win32 layer), and AV scan results on the release exe are no worse.
Activity