Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

StdinWrite is only writing "More?"

$
0
0
[ autoit ]      
#RequireAdmin #include <Constants.au3> ; Demonstrates the use of StdinWrite() Local $foo = Run("cmd", @SystemDir, @SW_HIDE, $STDIN_CHILD + $STDOUT_CHILD) ; Write string to be sorted to child sort.exe's STDIN $local = "localhost" StdinWrite($foo, $local) ; Calling with no 2nd arg closes stream StdinWrite($foo) ; Read from child's STDOUT and show Local $data While True $data &= StdoutRead($foo) If @error Then ExitLoop Sleep(25) WEnd MsgBox(0, "Debug", $data)
There must be something I am missing because If I use the example in autoit for StdinWrite() it works fine but when I try to write something it keeps displays "More?" as the response. Why is this happening. Yes I search around the forums and the help file but found nothing. If I did miss something please point it out.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>