How to create a global alt + hotkey in Python?

I want to create a global hotkey using alt + 1, 2, ..., which paste some line into the clipboard.

How can i do this?

+3
source share
3 answers

pyhookmodule provides a fairly easy way to use Windows Keyboard hooks.

+3
source

. , AutoHotkey Windows. AutoHotkey (AHK) Python ( AHK). - autohotkey.dll - AHK, DLL, ctypes.

AHK Windows, . . API. AHK .exe, , Windows.

+3

, Windows API ( ), RegisterHotKey ( a ), - Windows. , Windows - . per , Python Windows Extensions - .

+2

Source: https://habr.com/ru/post/1750037/


All Articles