neo van matix Posted September 20, 2006 Share Posted September 20, 2006 Hello, currently i write a little script, which parse php-code. I write some Input (<? echo "hello world"; ?>) into a file, and open the php.exe with the parameter "-f file2parse". On commandline, it works - i get the result "hello world". But, how i get this result into usable data into autoit? RunWait(@ComSpec & " /c " & 'php.exe -f $source', "", @SW_SHOW) A Dos-Box appears for 0,5 secs - but, how i could show the result in autoit, like, in a messagebox or in a popup ? Attention! English noob ^^ Link to comment Share on other sites More sharing options...
jvanegmond Posted September 20, 2006 Share Posted September 20, 2006 (edited) #include <Constants.au3> $foo = Run(@ComSpec & " /c " & 'php.exe -f $source', "", @SW_SHOW,$STDOUT_CHILD) While 1 $line = StdoutRead($foo) If @error = -1 Then ExitLoop MsgBox(0, "STDOUT read:", $line) Wend Edit: Forgot include. Edited September 20, 2006 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
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