How to intercept a keypress using python?

Ticachua teengo at
Mon Jan 12 18:50:38 CET 2004

Hello all,

Does anyone know how to intercept user's keypress or mouseclick in Python?
I'd like to write a small tool (Python-based preferrably) running on
Windows to capture the user's keypresses and mouseclicks and write 
them to a file.

Thanks for your help.

More information about the Python-list mailing list