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
# Register
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=1)
# Unregister
manager.UnregisterHotKey(key_id1)
# Turn on the logger
manager.logger = True
# Turn off the logger
manager.logger = False
...
Release Note
v1.2.0
- Add logger.
- Optimize code.
- Attempt to fix a potential bug.
v1.1.1
- Remove log message.
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.2.0.tar.gz
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for PyHotKey-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bde7ea8d6b1ff4d8d329bcf50da5725097595e995048fa458cf7d6f17f455591 |
|
MD5 | 3b078922b16064dd18d455778c1c4b43 |
|
BLAKE2b-256 | 8b508fc01f78700b489e509115952332a638da3272c44c85e796a3a4c7bc9cac |