Avoid human interaction

Hello,

Can we use java to write a program which can control another program?

Can I run a java program to control Microsoft Word? to avoid human interaction?

Obviously, I believe we can use java to write a Word appliaction but is it possible to have one program controlling another program?

Sorry, if this is a silly question cause I am new to programming.

cheers,

Will

[411 byte] By [cert21a] at [2007-11-27 8:37:07]
# 1

This is not at all a "silly" question (though it does smell slightly misanthropic).

I've created a driver program using c#, and there it's not too difficult since .net has a sendKeys method, and also .net allows interaction with system processes through the process class and with the underlying operating system (such as the all important user32) through the [DllImport()] construct.

Java is much more limited in this regard but with good reason. Java was built to be operating system independent, so any code that ties it to one OS, limits it in another. I believe (but don't know absolutely), that you can have some control over another program if your java program starts the other program. Will your java program be doing this? I'm sorry, but for a more definitive answer, you are going to have to wait for a bear with a bigger brain.

petes1234a at 2007-7-12 20:34:19 > top of Java-index,Java Essentials,New To Java...