tags:

views:

110

answers:

3

How to simulate key press event with ksh|bash script?

+1  A: 

Try xdotool: http://www.semicomplete.com/projects/xdotool/

Bart Sas
Unfortunatelly this is not suitable for my OS (SCO Unix).
kofucii
+1  A: 

I don't know why xdotool wasn't compatible with SCO ; but maybe these are. What about Expect, or replayXt?

See Also
DejaGnu, a testing framework based on Expect
replayXt, control of Athena and Motif based GUIs

Frayser
A: 

If you want to automate things in KDE, I would suggest you to look at DCOP [1]. You can interface full-fledged KDE applications using DCOP calls from Bash/Ksh script.

Take a look at this tutorial from IBM [2] as well. You can do many interesting things using DCOP.

Babil