﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3759	Console (cmd.exe) output	moderncareca@…		"Hi, i'd like to see a feature, if at all possible, which is to be able to see the cmd window output when using $STDIN_CHILD + $STDOUT_CHILD flags.
Example of something that doesn't work this way: 

{{{
#include <WinAPIConv.au3>
#include <Constants.au3>
Opt(""MustDeclareVars"", 1)
Local $iPID = Run(""cmd"", '', @SW_SHOW, $STDIN_CHILD + $STDOUT_CHILD)
ProcessWait($iPID)
Sleep(2000)
MsgBox(64 + 262144, '', StdoutRead($iPID))
ProcessClose($iPID)
Exit
}}}

The expected result is to be able to read the output in the cmd window itself, instead of just being able to get the output with the StdoutRead function.
In the bellow example there is a similar code, but this time with conhost.exe instead of cmd.exe, and in this, im able to read the output in the window itself as well as obtain the read from the StdoutRead function. Even if the characters get a bit messed up.


{{{
#include <WinAPIConv.au3>
#include <Constants.au3>
Opt(""MustDeclareVars"", 1)
Local $iPID = Run(""conhost"", '', @SW_SHOW, $STDIN_CHILD+ $STDOUT_CHILD)
ProcessWait($iPID)
Sleep(2000)
MsgBox(64 + 262144, '', _WinAPI_OemToChar (StdoutRead($iPID)))
StdinWrite($iPID, 'netstat -r'&@CRLF)
Sleep(2000)
MsgBox(64 + 262144, '', _WinAPI_OemToChar (StdoutRead($iPID)))
ProcessClose($iPID)
Exit
}}}

"	Feature Request	new		AutoIt		None			
