Skip to content

Instantly share code, notes, and snippets.

@Aliense
Aliense / globalhotkeys.py
Last active November 7, 2020 09:56 — forked from mdavey/globalhotkeys.py
Global hot keys in Python for Win32
import ctypes
import ctypes.wintypes
import win32con
class GlobalHotKeys(object):
"""
Register a key using the register() method, or using the @register decorator
Use listen() to start the message pump