Skip to content

Replace unmaintained keyboard/mouse hook libraries with RegisterHotKey + Tk picker #57

Closed

Description

@TMHSDigital

Summary

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.
  • autoclicker/utils/coordinate_picker.py:50-55 — mouse.on_button + keyboard.add_hotkey("esc").
  • pip index versions keyboard → latest 0.13.5; mouse → latest 0.7.1.

Suggested approach

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

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

    enhancementmaintenancepriority: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions