How to simulate key press event?
开发者_如何学GoHow to simulate key press event with ksh|bash script?
Try xdotool: http://www.semicomplete.com/projects/xdotool/
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
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.
- [1] http://en.wikipedia.org/wiki/DCOP
- [2] http://www.ibm.com/developerworks/linux/library/l-dcop/
精彩评论