Writing my own typing monitor program for RSI sufferers...

2006-02-20 Thread samslists
Hi...

I want to write a program that will let me know after thirty minutes of
typing that I need to take a five minute typing break.  But when I stop
typing it's smart enough to pause the 30 minute timer automatically.
This is under the X-Window System (Linux).

The tricky part is obviously knowing when the mouse and keyboard are
being usedespecially when my application doesn't have the focus.

Obviously I can't do this with just the base python install.  Is there
an add on library that I can use to monitor the keyboard and mouse?
Which is it?  Maybe one of the graphical libraries, like wx, or qt, or
gtk?  Which functions do I need?

Thanks

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Writing my own typing monitor program for RSI sufferers...

2006-02-20 Thread samslists
So, so close  The problem with this implementation is that it
doesn't monitor usb keyboards under linux at all as far as I can
tellsince no keyboard entry will show up in /proc/interrupts with a
usb keyboard.  I absolutely need the keyboard monitoring as well.

Otherwise, your project would be the perfect starting point for me!

Anyone else have an idea as to what I can use with Python to know when
the keyboard is being used even when I don't have focus?

Thanks
Sam

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Writing my own typing monitor program for RSI sufferers...

2006-02-21 Thread samslists
Well, this is the one part that I have no idea how to doas far as I
can tell the information simply is not in /proc.  I need a different
method to discover when someone is typing.  That's what I came to the
list for, to get a clue as to how to do that.

Certainly someone has an idea how to detect typing on a usb keyboard
under pythonsome external library must exist?

Thanks

p.s. Diez...I'll read that over, and will look forward to seeing what
you come up with.  Please email me to let me know..I suspect that
your approach will require kernel modifications I don't want to go
down that path.  I'd be okay with it once, cut the last thing I want to
do is repatch my ubuntu kernel every time there was a security fix.

-- 
http://mail.python.org/mailman/listinfo/python-list