Listening for keypress in the background

Peter Hansen peter at engcorp.com
Sat Oct 22 08:35:34 EDT 2005


Mathias Dahl wrote:
> I have created a small Python program that is running on my desktop.
> 
> How can I make it listen for a certain keypress (say, Windows-key +
> space) in a controlled fashion even when it is not the program having
> focus?
> 
> I need to do this running under GNOME in Mandrake GN/Linux 10.

Search Google for "python keylogger".

-Peter



More information about the Python-list mailing list