🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11304

Reading from console window (not piped) ?

#11304
From: EricM
Date: Wed, 18 Feb 2004 12:00
10 lines
1322 bytes
I'd like to read the contents of a console window (not mine), the output
can't be piped to a file (i've tried that). However i can select all the
text
(manually) and then copy it to eg. notepad.. Sending text to the console
command-line works by using SendMessage(hwnd,WM_CHAR,'A',1) but when using
WM_GETTEXT or any similar thing returns either nothing or the
window-caption.. I need to read the contents of the console itself.. Anyone
knows how ?

Regards, Eric
Technical Details
Message-ID: <403353de$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e987f1a8f3ea449c,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-18 04:09:54 PST
From: "EricM" <EJMuller@wxs.nl>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Reading from console window (not piped) ?
Date: Wed, 18 Feb 2004 13:00:36 +0100
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 80.60.18.138
Message-ID: <403353de$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1077105630 80.60.18.138 (18 Feb 2004 04:00:30 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail