How to - Access another application's Text

  • Thread starter news.microsoft.com
  • Start date
N

news.microsoft.com

Hello



How can I access another application window's Text? It is ilistview if seen
by spy++.



I know we have to get the windows handle and read the text.



But I cannot seem to find any c# code for that.



Any ideas ? suggestions ? Demos ?



Thank You
__________________________________________________________________________
Hemang Shah MCSE A+
Enterprise Messaging Support
Direct phone: (905) 568-0434 x 23854
Email: (e-mail address removed)
Office hours: Mon to Fri from 21:00-05:30 hrs EST.

If you need to speak to someone when I am not available, please contact one
of the following:
Backup Brian Drepaul at (877)568-2495 x 23830or (e-mail address removed) -
Backup
Manager Daniel Carrasco at (905) 361-9122 or (e-mail address removed) -
Manager

If you would like additional technical information from Microsoft, we invite
you to attend a FREE TechNet event near you. Registration is easy at
http://www.technetbriefings.com. Referral Code=TNPSSE. Are you secure? For
information about the Microsoft strategic Technology Protection Program and
to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security

Proactively analyze your Exchange environment! Download and run the Exchange
Best Practices Analyzer here: http://www.microsoft.com/exchange/exbpa
 
M

Mohamoss

Hi Hemang
if I got what you want correctly , then . For managed code you can use
something like the .net reflector . Check
http://www.aisto.com/roeder/dotnet/ . it reverse engineer the PL to either
C# or VB.net . still it is not almost 100% accurate and you still can
confiscate your code so such operations wouldn't work .
hope this helps
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC
 
H

Hemang Shah

I do not want to reverse engineer the target application.

I want to access some text of the target application when it is running from
my C# Application

Using the API GetWindowText and so on.

I'm looking for a sample code for that.

Thanks

HS
 
H

Hemang Shah

Hello

What I want to do is access the text on another application's form which is
displayed.

Not the source code.a

We do it by using the windows handle & "GetWindowText" I think

But I was looking for some c# example on that.

thanks
 
H

Hemang Shah

Any c# sample application anywhere?

Can I get even child windows ? which has an ilist control?
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top