Re: Track keyboard and mouse usage

2006-07-23 Thread dfaber
(filename, os.O_RDWR | os.O_NONBLOCK) self.fd = os.open(filename, os.O_RDONLY | os.O_NONBLOCK) Runs great. Thanks again. [EMAIL PROTECTED] wrote: Hello dfaber, I had the same problem not long ago. I tried to use the Xlib since its obvious the X server has all the events but I couldn't have

Re: Track keyboard and mouse usage

2006-07-18 Thread dfaber
That IS brain-crushingly complicated. However, thanks for the insight. I really appreciate it. Dennis Lee Bieber wrote: On 17 Jul 2006 21:00:09 -0700, dfaber [EMAIL PROTECTED] declaimed the following in comp.lang.python: Is there no clean method of accessing the keyboard device or the mouse

Track keyboard and mouse usage

2006-07-17 Thread dfaber
Hi all, I have been searching for a keyboard and mouse tracker on linux. I've read solutions (watch at sourceforge) which look at /proc/interrupts to check keyboard or mouse activity. I also read one post where watch seems to have difficulty tracking usb keyboards and mice. So, I'm out of ideas

Re: Track keyboard and mouse usage

2006-07-17 Thread dfaber
So, how would I access /dev/input/ devices? Can I just 'cat' them or read in those files? Diez B. Roggisch wrote: [EMAIL PROTECTED] schrieb: Diez You could use the /dev/input/event* devices. On the only Linux system I have available (Mojam's CentOS-based web server), /dev/input/*

Re: Track keyboard and mouse usage

2006-07-17 Thread dfaber
So, how would I access /dev/input/ devices? Can I just 'cat' them or read in those files? Diez B. Roggisch wrote: [EMAIL PROTECTED] schrieb: Diez You could use the /dev/input/event* devices. On the only Linux system I have available (Mojam's CentOS-based web server), /dev/input/*

Re: Track keyboard and mouse usage

2006-07-17 Thread dfaber
Is there no clean method of accessing the keyboard device or the mouse on linux? It seems that looking at /proc/interrupts might prove to be useful for keyboard monitoring. What about checking if the left mouse button is clicked or finding the position of the cursor on the screen? --

starting and stopping a program from inside a python script

2006-07-03 Thread dfaber
Aloha! I want to terminate a process/program from within a python script. For example, if I have a program say foo.sh that starts running, then I can run it from within a python script using os.popen('foo.sh') which starts a program/process say 'bar' At some point later, I want to kill 'bar'.

Re: Python editor recommendation.

2006-05-09 Thread dfaber
I use Eclipse with the Pydev plugin. It's great way to start familiarizing yourself with Python. The editor has got great features and the debugger will be a great help too. Vim is great too but may be not a good idea if you are new to Python. Good luck! --

python and webcam

2006-02-12 Thread dfaber
Hi, I have Logitech webcam and I need to grab images on Fedora Core 4 (not my favorite distro). Are there any python modules available for doing this? Any hints or suggestions would be welcome. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: python and webcam

2006-02-12 Thread dfaber
It is a Win32 Python Extension. I am looking for something that work on Linux. -- http://mail.python.org/mailman/listinfo/python-list

Re: python and webcam

2006-02-12 Thread dfaber
Thank you for your help. I will look around for v4l modules too. -- http://mail.python.org/mailman/listinfo/python-list

Re: python and webcam

2006-02-12 Thread dfaber
Hi again, I've tried a the Sane interface from PIL and I get the following error, when I run the demo_pil.py from the Sane directory. SANE version: (16777231, 1, 0, 15) Available devices= [('v4l:/dev/video0', 'Noname', 'Logitech