Hi,
Assuming MS-Windows every window has an id. You have to try to get the id of
the window somehow from the window hierarchy. After that GetWindowText might
get the text.
Or if you know the class name and window name use findwindow to get a handle
to the window.
Microsoft Spy++ utility might help a bit.
Things to lookup on MSDN
FindWindow
GetWindowText
Spy++
And maybe the following link:
http://blogs.msdn.com/vcblog/archive/2007/01/16/spy-internals.aspx
Regards, Ron AF Greve
http://www.InformationSuperHighway.eu
<WFD
@gmail.com> wrote in message
news:1180455312.337665.84800@p77g2000hsh.googlegroups.com...
>I want to write or obtain C++ code that will scrape text from a dialog
> box within a poker client, and then record that text somewhere else.
> What do I do? Thanks.