Sending keystrokes using Python

Posted by Rudi Strydom on Ask Ubuntu See other posts from Ask Ubuntu or by Rudi Strydom
Published on 2012-11-17T14:14:28Z Indexed on 2012/11/17 17:22 UTC
Read the original article Hit count: 333

I am trying to build a remote control application to control media on my Ubuntu. Does anyone know a way in order to accomplish this. The media keys in particular.

Thank you.

EIDT:

I have tried using XTE, but is seems python in truncating the input or there is a limit or something which means that you can't do Ctrl + Key key presses, which wont suit my needs.

I also tried uinput, but alas you need to run it as root, which also will not quite my needs.

Now I am looking at EVDEV which seems promicing, that is if I can get it working.

© Ask Ubuntu or respective owner

Related posts about application-development

Related posts about Development