🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Reading contents from other applications again..

#10192
From: johan
Date: Mon, 03 May 2004 15:37
15 lines
1452 bytes
Hi again,

same problem as before but a new idea.

The problem was to read contents from another application/window
and retrieve some data like text from the window.

My new idea is retrive the hdc for the window( which I have successfully done and verified that it is the correct one)
when I have this hdc I would like to copy the information in some format maybe like a bitmap or something. Then by reading the color of each pixel i will make an algorithm to convert pixels to text.

My problem is, how do I copy data from the window, and then whatever format it is, how can I recognize the colors for each pixel?

any ideas would be grateful.
Regards Johan
Technical Details
Message-ID: <4096674f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!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,af36a63c92de75ec,start
X-Google-Attributes: gid10cc67,public
From: "johan" <info@bulletinboard.nu>
Sender: "johan" <info@bulletinboard.nu>
Reply-To: "johan" <info@bulletinboard.nu>
Subject: Reading contents from other applications again..
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 62.103.187.7     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4096674f$1@newsgroups.borland.com>
Date: 3 May 2004 08:37:51 -0700
X-Trace: newsgroups.borland.com 1083598671 207.105.83.66 (3 May 2004 08:37:51 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail