Hidden Console window & Text input/output

BlitzMax Forums/BlitzMax Programming/Hidden Console window & Text input/output

Hezkore(Posted 2011) [#1]
Is it possible to start a console application (windows) and hiding it, and also getting any text it outputs?
And as if that wasn't enough, is it possible to input any text to it?


Hezkore(Posted 2011) [#2]
I seem to have found something relevant over at - http://www.blitzmax.com/Community/posts.php?topic=68847#769756


Hezkore(Posted 2011) [#3]
I can't seem to figure out how to input text or key presses though, any help there?


Kryzon(Posted 2011) [#4]
I'm guessing WaitChar or some other way to read keyboard events (your application quietly listening for these events of course), then acting appropriately once they're read.


Hezkore(Posted 2011) [#5]
Yes but how would i input it to my TProcess?
I'm using
Local MyProcess:TProcess = TProcess.Create(AppDir + "\TestConsole.exe", HIDECONSOLE)
to launch it, I'm able to read from it but not input anything.