View previous topic :: View next topic |
Author |
Message |
jeffk l33t
Joined: 13 Sep 2003 Posts: 671
|
Posted: Sat Feb 21, 2009 8:33 pm Post subject: read keystroke input with dbus (python)? |
|
|
Can anyone suggest the right dbus object to connect to watch the keyboard input?
I'd like to use python, and have http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html as a resource.
Searching for "dbus key{board,stroke}" or similar results mainly in people reporting their keyboard problems with udev/dbus/evdev.
Nothing nefarious like a keylogger here, I want to make something to display keystrokes onscreen during screencasts.
Thanks. |
|
Back to top |
|
|
makism Tux's lil' helper
Joined: 24 Oct 2007 Posts: 85
|
|
Back to top |
|
|
jeffk l33t
Joined: 13 Sep 2003 Posts: 671
|
Posted: Sun Feb 22, 2009 10:32 pm Post subject: |
|
|
I came to find the same resource and demo exactly. python-xlib is probably the right tool for this area. I found that reading directly from /dev/input devices was not my cup of tea
FWIW, I studied wicd (a wireless connection daemon with GUI) as an example of a dbus participant in python. It seemed not to use dbus for interaction with the network interfaces, only with the GNOME panel, etc.
Thanks. |
|
Back to top |
|
|
|