Solved

How to get the text in client area of another Program

Posted on 2000-04-06
1
206 Views
Last Modified: 2010-04-10
GetWindowText cano only obtain the title of the window, not those in the client area.
0
Comment
Question by:YeNing
1 Comment
 
LVL 31

Accepted Solution

by:
Zoppo earned 20 total points
ID: 2689633
Hi YeNing,

>GetWindowText cano only obtain the title of the window, not those in the client area.

Not 100% correct ... i.e. GetWindowText can retrieve the text entered in a edit box.

BTW, there's no general answer (even if you would offer more points) coz this depends on the type of the window and in which way the text in the window handled. I.e. if one writes a simple windows application which just writes some text to a window using ::TextOut() or ::DrawText() or similar there will be no chance for you to retrieve this text (except taking a snapshot and use some exhaustive pattern matching/OCR functionality/software).

There's no general way to retrieve the text of a window's client area unless the window itself provides functionality to do this via WM_GETTEXT message (as i.e. edit box control does).

BTW, perhaps it maybe the application of the window you need to get the text from has implemented an automation interface to get the text, but this also isn't the default.

hope that helps,

ZOPPO
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question