|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to - Access another application's TextHow 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-hs***@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-brd***@microsoft.com - Backup Manager Daniel Carrasco at (905) 361-9122 or v-dan***@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 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 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 Show quoteHide quote "Mohamoss" <mohamed.mos***@egdsc.microsoft.com> wrote in message news:Gvbjs4DPFHA.920@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 > 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 Show quoteHide quote "Mohamoss" <mohamed.mos***@egdsc.microsoft.com> wrote in message news:Gvbjs4DPFHA.920@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 > 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/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/findwindow.asp Regards, Philip Hristov. Any c# sample application anywhere?
Can I get even child windows ? which has an ilist control? Thanks Show quoteHide quote "Philip Hristov" <phristo***@gmail.com> wrote in message news:1113207378.034031.50850@g14g2000cwa.googlegroups.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/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/findwindow.asp > > Regards, > > Philip Hristov. >
Other interesting topics
encrypt/decrypt
Did microsoft invent their own unit of time? Problems with GDI+ and transparent PNG-Imges DeviceIoControl from C# ? C# program with repeating records printed in Crystal report Disable programmatically raised events Collect the data EventLog Class VS .NET 2003: Debug vs. Release Datagrid scrolling.... |
|||||||||||||||||||||||