Article View: comp.os.ms-windows.programmer.win32
Article #2166Grab Screen from active DOS/console App. ?
From: lars
Date: Mon, 11 Oct 1999 00:00
Date: Mon, 11 Oct 1999 00:00
26 lines
1539 bytes
1539 bytes
Hi, I want to grab the textcontent of an active DOS box. - what i DONT want is a solution that "pipes" data another way - like: dir > data.dat since this wont work with an active application - ex EDIT.EXE or another program running until user exits the program. What i would like is to "poll" the DOS box from my application - and get the ex. 80*25 characters - and ex. display this in another way in my GUI application. Can anyone tell me if this is possible ? - im using CreateProcess to launch the external application, the dos application will always be "windowized" - not a fullscreen box. I have looked at AllocConsole....but well...i dont really get the idea of this. Hope this is clear and someone can help me, thanks. Regards, Lars
Technical Details
Message-ID:
<7tsso1$94v$1@news.inet.tele.dk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113dfb,c93ee5508c9ac840,start X-Google-Attributes: gid113dfb,public X-Google-Thread: f5ca7,c93ee5508c9ac840,start X-Google-Attributes: gidf5ca7,public From: "lars" <lti@delfi.dk> Subject: Grab Screen from active DOS/console App. ? Date: 1999/10/11 Message-ID: <7tsso1$94v$1@news.inet.tele.dk> X-Deja-AN: 535395837 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: Department of Abuse <abuse@news.inet.tele.dk> X-Trace: news.inet.tele.dk 939652673 9375 195.215.129.242 (11 Oct 1999 14:37:53 GMT) Organization: Customer of Tele Danmark Internet NNTP-Posting-Date: 11 Oct 1999 14:37:53 GMT Newsgroups: comp.os.ms-windows.programmer.win32,borland.public.cppbuilder.winapi