Re: Listening for keypress in the background

2005-10-22 Thread Mathias Dahl
Mathias Dahl <[EMAIL PROTECTED]> writes: > Peter Hansen <[EMAIL PROTECTED]> writes: > >>> 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? >

Re: Listening for keypress in the background

2005-10-22 Thread Mathias Dahl
Peter Hansen <[EMAIL PROTECTED]> writes: >> 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 key

Listening for keypress in the background

2005-10-22 Thread Mathias Dahl
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. /Mathias -- http:/

Listening for a certain keypress in the background

2005-10-22 Thread Mathias Dahl
I have created a 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 GNOME under Mandrake GN/Linux 10. /Mathias -- http://mail.p

Re: Invoking GUI for app running in background with a keypress

2005-08-15 Thread Mathias Dahl
Jeremy Moles <[EMAIL PROTECTED]> writes: > If you want to get crazy you can poll() on one of the evdev nodes > (/dev/input/event*) and behave accordingly. I do this in a C application > we use to do the exact same thing you're talking about. > > Each successful read from the device returns a 16-

Invoking GUI for app running in background with a keypress

2005-08-15 Thread Mathias Dahl
I am creating a small app called PyQe (http://klibb.com/cgi-bin/wiki.pl/PyQe) to launch commands and programs quickly. I works more or less as I want it now and I have managed to make my window manager (Metacity) under Mandrake GNU/Linux start my program so that it can be started easily with just a