A cross-platform hot key module.
Project description
PyHotKey
Description
PyHotKey is a cross-platform hot key module for Python. Based on "Pynput" module.
Installation
pip install PyHotKey
Usage:
from PyHotKey import manager, Key
key_id1 = manager.RegisterHotKey(func1, [Key.ctrl_l, Key.alt_l, 'z'])
key_id2 = manager.RegisterHotKey(func2, [Key.caps_lock], 2, 0.5, func2_arg1, func2_arg2)
manager.UnregisterHotKey(key_id1)
...
Release Note
v1.1.0
- Currently, the trigger function supports arguments.
- No longer need to call manager.start() manually.
- Fix multiple type hot key bug.
v1.0 - Initial Release
- The first version.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyHotKey-1.1.0.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for PyHotKey-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26e2e4a247896ea933b52261eae29f1bf27541e3c5c595a05b455473ae0fd28b |
|
MD5 | eb0d43e0c214957925e4af172cf81eff |
|
BLAKE2b-256 | 9f76922debd922f2b14fcf67b4879dea6b836f7e1396c7616fbb42a78f492591 |