>Hi
>
>I'm using the following code to run an external Java application, where lcFileName = "MyJava.jar"
>
>
>DECLARE INTEGER ShellExecute IN shell32.dll ;
> INTEGER hndWin, ;
> STRING cAction, ;
> STRING cFileName, ;
> STRING cParams, ;
> STRING cDir, ;
> INTEGER nShowWin
>
>ShellExecute(0,"open",lcFileName,"","",1)
>
>
>Is there any way that I can then send a "carriage return" to that Java App, the default command button on my Java App is highlighted and the user only needs to press "Enter" for it to run. I'd like to be able to run the application automatically?
>
>Regards
Perhapes look at the WinAPI SendKey function. But you will need to perform it before the ShellExecute. It may work.
Greg Reichert