Page 1 of 1
Getting a Console Screen Capture
Posted: Wed Sep 03, 2003 5:16 pm
by oldefoxx
I used RunProgram to perform a Ping operation, but the Replys did not show up in the redirect to file. I was wondering if there is a simple technique for capturing everything on the console screen to an area of memory or to a file when performing a RunProgram..
Posted: Wed Sep 03, 2003 5:25 pm
by freak
There is a way, but unfortunately i don't know it.
But maybe you want to use a PB routine, instead of calling the external
ping command.
have a look here:
viewtopic.php?t=3717
Timo
Thanks, Timo
Posted: Thu Sep 04, 2003 4:38 am
by D'Oldefoxx
Thanks, Time. I grabbed the code at the link youprovided. But actually, I'm isomewhat interested in how to make the Console feature more robust. O seem some Windows APIs for Console, but hard to say if any of that can work within the pureBasic environment. I just figured someone would have played around with it a bit and could share some experience and code.
I
This should do it...
Posted: Thu Sep 04, 2003 11:22 am
by Hi-Toro
Sounds like you want to capture the actual text output? This worked for me:
viewtopic.php?t=7399