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.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.1.1.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for PyHotKey-1.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e92a28cacd33783d1c6349390f7d3fd14be06bdb65e6b4c93cb792b1cbbc39fa |
|
MD5 | 813326a91da340daad0f766804fd2f86 |
|
BLAKE2b-256 | b94e3213820f9b8c210676e75baa4423bb4745048428d17aea44cdb70da369d2 |