But I am trying to write an Windows App using MFC that can capture text from
other programs' text boxes and dropdowns (the way snagit does).
I know some of the textboxes I would like to capture use the Rich Edit
Control (CRichEdit class, I believe) but that's about all I know.
In SnagIt, you can mouse over various objects in other programs (textboxes,
buttons, dropdowns, etc.) and it will highlight them -- you can then accept
the selection and capture the desired text. So it seems these objects are
accessible just knowing their screen position, and that the text within them
is also accessible. I would love
to know how this done.
Can anyone offer a starting point for learning about this? Articles, books,
your own explanation, I would appreciate anything.
Thanks,
cpp
The Spy++ tool included with Visual C does the same thing. Source code
for a Spy-like tool is included in the Platform SDK samples.
--
Scott McPhillips [VC++ MVP]
HTH
--
Adam Clauss
cab...@tamu.edu
"cppaddict" <cppa...@yahoo.com> wrote in message
news:oQOlb.5786$Me3....@newssvr29.news.prodigy.com...
Scott,
I couldn't find the Spy-like tool you are referring to. Could you send me
the path to it (relative to "Microsoft Visual Studio," or whatever folder it
is in).
Thanks,
cpp
Search MSDN CD for "Spy: Monitoring Messages with SPY" or download the
samples online from
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/html/vcsmpspy.asp>
Joseph M. Newcomer [MVP]
email: newc...@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm