Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2008 Jan : Getting caption or text of a button in another application.
| Subject: | Getting caption or text of a button in another application. |
| Posted by: | "gbenga" (gabimbo..@columbus.gov) |
| Date: | 7 Jan 2008 09:17:33 |
<<< I think I posted this, but did not see it in the forum
I appologize if this is posted twice >>>
I need to create a console application that would get the title,
of another Window (Form) application. Then, I would like to
get the caption of a component (buttion) on that application, so
that I can take any action....
I was able to do this in C# with the exception of getting the
caption of a button on that application. Most answers that
I got on C# was that I would need to call some C++ library, etc.
Otherwise, I would need a ManagedSpy (or SPy++) to read the
properties of a running process (or application). I would want
to do this programmatically. And since I was told that this
is possible with only C++, I assume that, it would be possible
in Delphi.
Can you point me to a sample code or the link where I can
find a solution for this kind of application, using Delphi?
I'm currently using Delphi 7.0
Your immediate response to this request would be greatly
appreciated.
Sincerely:
Gbenga