View previous topic :: View next topic |
Author |
Message |
Boddah n00b
Joined: 25 Jul 2002 Posts: 8
|
Posted: Fri Jul 26, 2002 10:17 pm Post subject: Sending keystrokes to an X application |
|
|
I'm wondering if anyone knows how to send a keystroke to an X Window application from the shell prompt. I've just gotten my X10 Mouse Remote working, but it's limited to executing shell scripts and the like. The only thing I've found so far is part of the LIRC package, and I couldn't get it to work with my remote, and none of its utils work independent of the package.
Thaxn in advance |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Fri Jul 26, 2002 10:27 pm Post subject: |
|
|
One way you can do this is through the "X Test" extension. You basically send fake events to the X server using this. I am not sure whether there is an easy-to-use application that wraps this so that you don't have to write your own code.
I am not sure whether it comes in the XFree server (I am not in front of my Gentoo box). If it is, you will be able to find the header file at:
/usr/include/X11/extensions/XTest.h
EDIT: it does include the file and the extension.
Last edited by Naan Yaar on Sat Jul 27, 2002 11:52 am; edited 1 time in total |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Sat Jul 27, 2002 3:18 am Post subject: |
|
|
You may also want to look at dcop/kdcop. The former lets you pass "commands" to KDE applications. You may be able to massage your scripts into something dcop can do. |
|
Back to top |
|
|
Boddah n00b
Joined: 25 Jul 2002 Posts: 8
|
Posted: Sat Jul 27, 2002 5:13 am Post subject: |
|
|
Thanx for that. I've been searching for ages on how to alter the X event queue, but this looks like it should do exactly what I want. |
|
Back to top |
|
|
Boddah n00b
Joined: 25 Jul 2002 Posts: 8
|
Posted: Sun Jul 28, 2002 1:26 pm Post subject: |
|
|
DCOP certainly gave me a lot of new options, but sadly, not enough applications seem to support it. There must be something floating around that allows me to queue events. |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Wed Aug 14, 2002 3:26 am Post subject: |
|
|
Found this recently. Seems like it may do what you need. |
|
Back to top |
|
|
|