Capture X keystrokes

B

Benjamin Kudria

Hi,

I'm the author of Snippits[1], a text expansion program for Linux.
Snippits types by generating X keystrokes, using the xte utility from
the xautomation suite. However, the way xte reads typed X characters is
a bit of a hack: it generates key commands to select back one word
(ctrl+shift+left), cut (ctrl+x), and then it reads the clipboard (using
xsel). This method is slow, error-prone, and ugly.

I was wondering if there was any way to capture X keystrokes as they are
generated. Does anyone know of a better method than above? I'm not
averse to using Ruby UI Toolkit bindings, if they have some method for
this.

Does anyone have any suggestions?

1: http://ben.kudria.net/code/snippits
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top