Google Answers Logo
View Question
 
Q: Microsoft Visual C# Programming Question - External Application Texbox Data ( No Answer,   1 Comment )
Question  
Subject: Microsoft Visual C# Programming Question - External Application Texbox Data
Category: Computers > Programming
Asked by: futures_trade-ga
List Price: $200.00
Posted: 24 Aug 2006 14:50 PDT
Expires: 26 Aug 2006 13:21 PDT
Question ID: 759236
Please provide me with a method to:
Access the data in the textbox in Windows' calculator.exe application.

Clarification of Question by futures_trade-ga on 25 Aug 2006 08:35 PDT
It is not imperative that the calculator.exe application be used as
the example. What I am looking for is a method that references a
textbox (or listbox) in an external application and reads its data. It
may be something like "process.handle(123456).copydata.tostring()" but
I am not sure.

Request for Question Clarification by answerguru-ga on 25 Aug 2006 11:03 PDT
Hi there,

I spent quite a while digging on this one for you - apparently there
isn't a built-in method of accessing controls of external
applications. I believe this has to do with security and "managed
code" considerations of C#.

I can provide you with the answer to the alternative approach
mentioned by darrenw-ga if that is satisfactory.

Do let me know.

Thanks,
answerguru-ga

Clarification of Question by futures_trade-ga on 25 Aug 2006 11:33 PDT
I am wondering how robust the method he is referring to would be.
Specifically, in a listbox that updates periodically, I am not sure
that his method would maintain focus on the data desired to be copied.
If I would be required to manually select the data every time, the
method would cease to be useful for its intended purpose.

What are your thoughts on this?

Request for Question Clarification by answerguru-ga on 26 Aug 2006 11:52 PDT
You are correct in your assumption - copying data to the clipboard
only gets that data at a particular point in time. If that information
were to change, the clipboard would not be updated.

So it looks like there is no reasonable answer to your question given
this restriction. Let me know if there is anything else I can assist
you with.

answerguru-ga
Answer  
There is no answer at this time.

Comments  
Subject: Re: Microsoft Visual C# Programming Question - External Application Texbox Data
From: darrenw-ga on 24 Aug 2006 23:05 PDT
 
Maybe if you could send down the message to copy contents to the
clipboard (Ctrl+C) then you can access the clipboard from your program
to obtain the value. I'm sure this can be done. Sorry I don't know the
specific code.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy