Does anyone know whether it is possible to impliment GetStandardStream within the KIX environment !

I can use it in VBS but would prefer KIX. Ideally I want to be able to emulate the console output in a re-sizeable system.form and the general consensus is to use GetStandardStream to pipe things from Console to Form.

e.g. Experimenting with the following conversion from a VBS example but to no avail !
 Code:
/*
object.GetStandardStream(standardStreamType [, unicode ])
The standardStreamType can have any of the following settings:
Constant      Value    Description
StdIn         0        Returns a TextStream object corresponding to the standard input stream.
StdOut        1        Returns a TextStream object corresponding to the standard output stream.
StdErr        2        Returns a TextStream object corresponding to the standard error stream

unicode       Optional Boolean value that indicates whether the file is created as a Unicode or ASCII file.
              The value is true if the file is created as a Unicode file, false if it is created as an ASCII file.
              If omitted, an ASCII file is assumed.
*/

break on
Dim $FSO,$sin,$sout,$Serr,$words
$fso=createobject("scripting.FileSystemObject")
$sin=createobject("scripting.TextStream")
$sout=createobject("scripting.TextStream")

$sin = $FSO.GetStandardStream(0)
$sout = $FSO.GetStandardStream(1)
$serr = $FSO.GetStandardStream(2)

$sout.WriteLine "Hello!"+@crlf
$sout.WriteLine "What's the word?"+@crlf
$Words = $sin.ReadLine()
$sout.WriteLine "So, the word is " + $Words+@crlf
$sout = ''
$sin = ''
get $