Article View: borland.public.cppbuilder.nativeapi
Article #10194Re: Reading contents from other applications again..
From: Bob Gonder
Date: Mon, 03 May 2004 17:01
Date: Mon, 03 May 2004 17:01
18 lines
1660 bytes
1660 bytes
johan wrote: >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. That could be tricky. >My problem is, how do I copy data from the window, BitBlt() > and then whatever format it is, how can I recognize the colors for each pixel? While you are on the BitBlt Help screen, press the Overview button to learn all about bitmaps. Also press the Group button to see the functions you could use. GetPixel() looks promising.
Technical Details
Message-ID:
<3duc90h0j364tada0ofsjjbl9q85j5auet@4ax.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4096674f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,af36a63c92de75ec X-Google-Attributes: gid10cc67,public From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Reading contents from other applications again.. Date: Mon, 03 May 2004 10:01:59 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <3duc90h0j364tada0ofsjjbl9q85j5auet@4ax.com> References: <4096674f$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 65.173.66.129 X-Trace: newsgroups.borland.com 1083603717 65.173.66.129 (3 May 2004 10:01:57 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail