开发者

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/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜