tobias7 Posted April 1, 2008 Posted April 1, 2008 I'm in a class where we have a big computer program to do by the end of the semester. We're going to code the program in java, but I would like to code the interface in AutoIt. I once had a similar situation and I used the code RunWait("java Kaleidoscope """& $path & """ " & $xInitial & " " & $yInitial & " " & $radius & " " & $degree & " " & $initialRotation & " " & $finalRotation & " " & 500 & " """ & $sdir & """", @TempDir, @SW_HIDE), where Kaleidoscope.java was the name of the program and xInitial, yInitial etc were the input parameters. The problem is, I know I can do input to a java program this way, but I have no idea how to do output. I've been trying for the last hour with a simple java Hello World program that prints out "Hello World" to System.out, but I can't seem to make any AutoIt program read it.
PsaltyDS Posted April 1, 2008 Posted April 1, 2008 I've been trying for the last hour with a simple java Hello World program that prints out "Hello World" to System.out, but I can't seem to make any AutoIt program read it.Did you try Run() with $STDOUT_CHILD, and StdOutRead()? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
tobias7 Posted April 1, 2008 Author Posted April 1, 2008 Did you try Run() with $STDOUT_CHILD, and StdOutRead()? Yes, I did, but I couldn't quite get it to work.
PsaltyDS Posted April 1, 2008 Posted April 1, 2008 Yes, I did, but I couldn't quite get it to work.Can you post a simplistic Java one-liner to write "Hello, world." to the console, and a simple AutoIt script to run it (with StdOutRead, for ex.)? That would give us something to test with. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now