Thanks,
Keith
keithl...@mATcablespeed.com
(remove nospam and replace AT with @)
You will need to attach to the running instance of IE. Through DOM, we can
get the selected text.
To connect to the IE, please check the article below:
176792 HOWTO: Connect to a Running Instance of Internet Explorer
http://support.microsoft.com/?id=176792
To retrieve the selected text, IHTMLDocument2::selection is what you need.
For more information about MSHTML, please check MSDN:
http://msdn.microsoft.com/workshop/browser/mshtml/reference/reference.asp
For samples of using DOM, please check the articles below:
312777 HOW TO: Handle Document Events in a Visual C# .NET Application
http://support.microsoft.com/?id=312777
http://www.codeproject.com/useritems/chtmlview_search.asp
Note: This article is written for VC, but the same concept applies.
Best Regards,
Leo Chen
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "KeithL" <KeithL...@macablespeed.com>
| Newsgroups: microsoft.public.dotnet.framework
| Subject: How to capture highlighted text on a webpage from another
application?
| Date: Thu, 2 Jan 2003 00:53:09 -0800
| Organization: Posted via Supernews, http://www.supernews.com
| Message-ID: <v17vci...@corp.supernews.com>
| Reply-To: "KeithL" <KeithL...@macablespeed.com>
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
| X-Complaints-To: ab...@supernews.com
| Lines: 10
| Path:
cpmsftngxa06!cpmsftngxa08!cppssbbsa01.microsoft.com!news-out.cwix.com!newsfe
ed.cwix.com!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.co
m!corp.supernews.com!not-for-mail
| Xref: cpmsftngxa06 microsoft.public.dotnet.framework:33407
| X-Tomcat-NG: microsoft.public.dotnet.framework