Getting a Console Screen Capture

Everything else that doesn't fall into one of the other PB categories.
oldefoxx
Enthusiast
Enthusiast
Posts: 532
Joined: Fri Jul 25, 2003 11:24 pm

Getting a Console Screen Capture

Post 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..
has-been wanna-be (You may not agree with what I say, but it will make you think).
freak
PureBasic Team
PureBasic Team
Posts: 5944
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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
quidquid Latine dictum sit altum videtur
D'Oldefoxx
User
User
Posts: 30
Joined: Wed Aug 06, 2003 5:52 pm
Location: Florida, USA

Thanks, Timo

Post 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
Has-been Wanna-be (You may not like what I say, but it will make you think)
Hi-Toro
Enthusiast
Enthusiast
Posts: 270
Joined: Sat Apr 26, 2003 3:23 pm

This should do it...

Post by Hi-Toro »

Sounds like you want to capture the actual text output? This worked for me:

viewtopic.php?t=7399
James Boyd
http://www.hi-toro.com/
Death to the Pixies!
Post Reply