By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,935 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Capturing text from a window

P: n/a
Can anyone tell me if there is an easy way to capture the text from a window
that is running in an external application?

Best wishes

Paul Bromley
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Paul Bromley" <fl*******@dsl.pipex.com> schrieb:
Can anyone tell me if there is an easy way to capture the text from a
window
that is running in an external application?


P/invoke on 'SendMessage' + 'WM_GETTEXT' will work for Windows' standard
controls if you have the control's handle. You can use
'FindWindow'/'FindWindowEx'/... to get a control's handle.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.