PC Review


Reply
Thread Tools Rate Thread

Accessing IE DOM from VB.net 2008

 
 
thunter
Guest
Posts: n/a
 
      13th Aug 2010
Hi,
I need to access currently running IE window's DOM content and read|
write on it.
I can find processId of the window with System.Diagnostics.Process().
But how can I can't create it as an object and access the DOM content.
thanks.
 
Reply With Quote
 
 
 
 
Mayayana
Guest
Posts: n/a
 
      13th Aug 2010
I don't know of a .Net method, but in case you don't
get a .Net answer, the following might help:

API: Use ObjectFromLResult to get an IHTMLDocument
from the window hWnd of any Internet Explorer_Server
class window. ...plenty of code online. You can just
enum. open windows, using the window title text to find
the one you want and using the hWnd to get the document
object.

Shell/COM: Access the Windows collection of the Shell
object. (shell32.dll) Windows represents all open IE
or Explorer instances. The items are officially IE objects.
In reality an IE window returns an IE object with an
available document. Explorer folders return a dummy IE
with a document object that is actually a ShellFolderView.
You can tell them apart by their LocationURL property,
the window class type, or the object type of the document.


| Hi,
| I need to access currently running IE window's DOM content and read|
| write on it.
| I can find processId of the window with System.Diagnostics.Process().
| But how can I can't create it as an object and access the DOM content.
| thanks.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BCM 2007 Shared Database on member Server 2008 in SBS 2008 Domain Andrew Parker Microsoft Outlook BCM 1 5th Feb 2010 03:18 PM
Accessing ActiveDirectory programmatically in Visual Studio 2008 JohnPCooper Microsoft VB .NET 1 9th Apr 2009 05:52 AM
Installing or accessing Defender on Windows 2008 Server Kevin Burton Security and Anti-Spyware Community 5 19th Nov 2008 09:43 PM
2008 new year,2008 new business, 2008 new life, much cheap and beautiful product will help you which r u like ? yhnetstore5@gmail.com Microsoft C# .NET 0 5th Jan 2008 07:18 PM
FREE DOWNLOAD 2008's SOFTWARE: XSTEEL 13,AUTOCAD 2008,AUTODESK VIZ 2008,ANSYS 11! CD-SOFT2007 Microsoft ASP .NET 0 18th Jul 2007 05:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:26 PM.