473,394 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to - Access another application's Text

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: v-*****@microsoft.com
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 v-******@microsoft.com -
Backup
Manager Daniel Carrasco at (905) 361-9122 or v-******@microsoft.com -
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


Nov 17 '05 #1
5 2469
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

Nov 17 '05 #2
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
"Mohamoss" <mo************@egdsc.microsoft.com> wrote in message
news:Gv*************@TK2MSFTNGXA01.phx.gbl...
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

Nov 17 '05 #3
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

"Mohamoss" <mo************@egdsc.microsoft.com> wrote in message
news:Gv*************@TK2MSFTNGXA01.phx.gbl...
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

Nov 17 '05 #4
Hemang,

To get the handle of a given window use FindWindow or FindWindowEx then
get the text with GetWindowText.

More info about these funcs you can find here:
http://msdn.microsoft.com/library/de...findwindow.asp

Regards,

Philip Hristov.

Nov 17 '05 #5
Any c# sample application anywhere?

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

"Philip Hristov" <ph********@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Hemang,

To get the handle of a given window use FindWindow or FindWindowEx then
get the text with GetWindowText.

More info about these funcs you can find here:
http://msdn.microsoft.com/library/de...findwindow.asp

Regards,

Philip Hristov.

Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Sean C. | last post by:
Helpful folks, Most of my previous experience with DB2 was on s390 mainframe systems and the optimizer on this platform always seemed very predictable and consistent. Since moving to a WinNT/UDB...
3
by: Random Person | last post by:
Does anyone know how to use VBA to relink tables between two MS Access databases? We have two databases, one with VBA code and the other with data tables. The tables are referenced by linked...
6
by: Ecohouse | last post by:
I have a computer with XP on it. I loaded Office 97 first because I needed Access 97 for some work. I then loaded Office 2000. Everything seemed to be running fine. But I have come across a few...
1
by: D Mat | last post by:
Hi, I'm trying to get MS Access 2000 to automatically import a series of (~200) flat text, tab delimited, data files into a single Access table, with consistent fields and rows. The files have...
41
by: Ruby Tuesday | last post by:
Hi, I was wondering if expert can give me some lite to convert my word table into access database. Note: within each cell of my word table(s), some has multi-line data in it. In addition, there...
8
by: mytfein | last post by:
Hi Everyone, Background: Another department intends to ftp a .txt file from the mainframe, for me to process. The objective is to write a vb script that would be scheduled to run daily to...
37
by: jasmith | last post by:
How will Access fair in a year? Two years? .... The new version of Access seems to service non programmers as a wizard interface to quickly create databases via a fancy wizard. Furthermore, why...
34
by: Mathieu Trentesaux | last post by:
Hello I downloaded Office 2007 for this reason : It seems, once again, that it is impossible to save any modification done in a VBA library, from the main project in Access. The save button...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.