编写程序与其他程序交互

Writing a program to interact with other program

有什么办法可以用Java写一个程序在Windows上,可以从另一个程序中填写数据提示吗? 基本上自动化与另一个程序的交互,否则必须使用鼠标和键盘来完成?

也许使用 Robot:
class支持鼠标键盘自动操作 http://alvinalexander.com/java/java-robot-class-example-mouse-keystroke