Solved

Enumerating group box windows/controls of another proccess

Posted on 2004-08-26
9
164 Views
Last Modified: 2010-04-24
I'm writting a program that will automaticly do a task in another program... everything was great until I got to the part of reading the other program's output.

The program has a group box that has several static labels (atleast they look like that) inside and I wan't to read the text on those labels, how do I do it?

...I was using FindWindowEx/EnumChildWindow which worked perfectly for everything else but I can't get the handles/text of those controls... they event don't appear in enumchildwindows
0
Comment
Question by:Interghost
9 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
Comment Utility
Have you tried with GetDlgItem()?
You have to scan item IDs from 1 to 32767 until the function returns a valid HWND.
0
 
LVL 16

Expert Comment

by:nonubik
Comment Utility
Try to look with Spy++ wheter they are windows or not and if they are, whose children are they.
0
 

Author Comment

by:Interghost
Comment Utility
I tried Spy++ and can't find them

re: jamies.... I don't understand what do u have in mind?... that would be too complicated, I would have to go through all the numbers with all the window's as parent combinations cause I don't know which is his parent....and that could also not work cause even If I find it I wouldn't know that that is the one I'm looking for


BTW I tried another idea...setting up a hook and monitoring WM_SETTEXT but nothing... my best guess is that the letters are beeing drawn manualy
0
 

Author Comment

by:Interghost
Comment Utility
Update... after disassembly I found references to ExtTextOut so my suspicion is probably confirmed... so now is there any way to read that text?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 16

Expert Comment

by:nonubik
Comment Utility
I'm afraid there is no possibility of this. The GDI hooking is hard to implement, on win9x there was some kind of hooking API, SetDDIHook(..) function, that is no more available on NT and above (2k, xp)
0
 

Author Comment

by:Interghost
Comment Utility
I've managed to do it using screen snaps and, I guess I could call it, simple OCR... so admin please delete the question


Thnx for the replys
0
 
LVL 16

Expert Comment

by:nonubik
Comment Utility
I think a PAQ/refund would be better (some valuable info can be found here).
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
Comment Utility
PAQed, with points refunded (250)

GhostMod
Community Support Moderator
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now