Jump to content

StdinWrite is only writing "More?"


Recommended Posts

#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.

No problem can withstand the assault of sustained thinking.Voltaire

_Array2HTMLTable()_IEClassNameGetCollection()_IEquerySelectorAll()

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...