'telegraphy' as a means of data entry

Elaine Jackson elainejackson7355 at home.com
Sun Sep 12 09:59:13 CEST 2004

"Peter Hansen" <peter at engcorp.com> wrote in message
news:8YGdnbbBS6xILt7cRVn-iA at powergate.ca...
| Elaine Jackson wrote:
| > I need to record the respective times of the events in a sequence of
| > presses/releases of a particular key on the computer keyboard. The key in
| > question should also make a sound when depressed (perhaps a forlorn sigh -
| > hee). On the face of it, it seems like it should be fairly straightforward
| > achieve this with a suitable combination of ingredients from Tkinter, time
| > winsound.
| Does this have to work regardless of what else is going on on
| the computer, or is it okay if it works only when the window
| for this particular application is active?  (In other words,
| it's easy to do if the keypresses go only to this program,
| but if you want to capture *all* keypresses at all times,
| you can't do it, AFAIK, using just a GUI toolkit like wxPython
| or Tkinter... you have to use an OS hook of some kind.)
| -Peter

Just when the window is active.

More information about the Python-list mailing list