[python-win32] Capture "Windows Key" keypress

Mark Ferguson mferguson at ntlworld.com
Sat Jul 31 12:27:37 CEST 2004


Have a look at Peter Parente's excellent pyHook module at 
http://sourceforge.net/projects/uncassist

I know this can pick up the keyboard events, although I'm not sure if
you can remove it before the system processes it. Must be worth a look
though...

Mark.

On Thu, 2004-07-29 at 00:43, Nate Drake wrote:

> Hi,
> 
> Is there a way to have my python program catch when the user has
> pressed the windows key, and to prevent the OS from seeing that the
> user has pressed it?
> 
> I'm writing a small "game" with pygame, and he sometimes bangs the
> windows key and the game is minimized and I go back to the desktop.
> 
> Thanks!
> 
> Nate
> _______________________________________________
> Python-win32 mailing list
> Python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32

           Mark Ferguson
Mobile
07919 068906
Home
0141 571 2479
email
mferguson at ntlworld.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20040731/5e941490/attachment.html


More information about the Python-win32 mailing list