Enumerating group box windows/controls of another proccess

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
InterghostAsked:
Who is Participating?
 
GhostModCommented:
PAQed, with points refunded (250)

GhostMod
Community Support Moderator
0
 
Jaime OlivaresSoftware ArchitectCommented:
Have you tried with GetDlgItem()?
You have to scan item IDs from 1 to 32767 until the function returns a valid HWND.
0
 
nonubikCommented:
Try to look with Spy++ wheter they are windows or not and if they are, whose children are they.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
InterghostAuthor Commented:
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
 
InterghostAuthor Commented:
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
 
nonubikCommented:
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
 
InterghostAuthor Commented:
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
 
nonubikCommented:
I think a PAQ/refund would be better (some valuable info can be found here).
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.