Re: Track keyboard and mouse usage

2006-07-23 Thread Simon Forman
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 > > on linux? > > It seems that looking at /proc/interrupts might prove to be useful for

Re: Track keyboard and mouse usage

2006-07-23 Thread dfaber
Hi Francois, Thank you for providing me the evdev link! That was exactly what I was looking for. Instead of sudo'ing the script, I changed /dev/input/ directory to be world readable. After that, I had to change the way a file was accessed in evdev.py to: Line No: 91 #self.fd = os.open(file

Re: Track keyboard and mouse usage

2006-07-21 Thread [EMAIL PROTECTED]
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 the mouse events if my app was out of focus. If you have a way to do that I'm really interested. Anyway I found this to be a good introduction to Xlib:

Re: Track keyboard and mouse usage

2006-07-19 Thread Diez B. Roggisch
Lars wrote: > Diez B. Roggisch wrote: >> will make the devices world readable. While I haven't thought about any >> security implications that might have (and am not especially >> knowledgeable in such things to be honest), I'm convinced it is way less >> likely to introduce any exploitable holes

Re: Track keyboard and mouse usage

2006-07-18 Thread Lars
Diez B. Roggisch wrote: > will make the devices world readable. While I haven't thought about any > security implications that might have (and am not especially > knowledgeable in such things to be honest), I'm convinced it is way less > likely to introduce any exploitable holes than suid root w

Re: Track keyboard and mouse usage

2006-07-18 Thread skip
Dennis> Problem: X-Window supports remote displays; you'd need a means Dennis> of specifying which display to track (unless you've opened a GUI Dennis> application and that application is asking for positions ... Watch does this via server mode (sort of). You run watch on both your l

Re: Track keyboard and mouse usage

2006-07-17 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 t

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? -- http://mail.

Re: Track keyboard and mouse usage

2006-07-17 Thread skip
MCI> Look PyHook ( http://cheeseshop.python.org/pypi/pyHook/1.4 ) MCI> Ooooh!!! Sorry! It's for Windows... That's okay (well, for me anyway). Watch runs on Windows. Perhaps someone with Windows would like to plug pyHook into watch? Skip -- http://mail.python.org/mailman/listinfo/

Re: Track keyboard and mouse usage

2006-07-17 Thread Diez B. Roggisch
dfaber schrieb: > So, how would I access /dev/input/ devices? > Can I just 'cat' them or read in those files? Yes, just read them. Which is what cat does, btw. If you cat your keyboard, you should see garbage appearing in the terminal when you type any key. Same is true for the mouse. Diez --

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/i

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/i

Re: Track keyboard and mouse usage

2006-07-17 Thread M�ta-MCI
Hi! Look PyHook ( http://cheeseshop.python.org/pypi/pyHook/1.4 ) Ooooh!!! Sorry! It's for Windows... -- MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: Track keyboard and mouse usage

2006-07-17 Thread Diez B. Roggisch
[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/* are readable only by root. That doesn't seem like it would be > very useful to tools like watch unless they were to r

Re: Track keyboard and mouse usage

2006-07-17 Thread skip
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/* are readable only by root. That doesn't seem like it would be very useful to tools like watch unless they were to run suid to root (creating other prob

Re: Track keyboard and mouse usage

2006-07-17 Thread Diez B. Roggisch
dfaber schrieb: > 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 m

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