This is not my architecture.
Current version of IE: 6, OS: Windows XP.
--
Russel Loski, MCSD.Net
I've never tried that before, but to help point the way, I'll suggest two things,
1. Get an object reference to the IE window:
Function IERef(Find_hWnd As Long) As InternetExplorer
' REFERENCE Microsoft Internet Controls for:
Dim SW As ShellWindows
Dim IE As InternetExplorer
Set SW = New ShellWindows
For Each IE In SW
If TypeName(IE.Document) = "HTMLDocument" Then
If IE.hWnd = Find_hWnd Then
Set IERef = IE
Exit Function
End If
Next
End Function
2. Use the DOM ( Document.parentWindow.execScript) to call your script.
LFS
--
Steve Easton
"Larry Serflaten" <serf...@usinternet.com> wrote in message news:u3mQeVvV...@TK2MSFTNGP06.phx.gbl...
--
Russel Loski, MCSD.Net
www.jsware.net/jsware/vbcode.php3#shlop
The download is sample code and lots of notes
about accessing Document objects and ShellFolderView
objects from folder windows, Document objects
from HTAs, etc. Basically, you can get hold of a
Document from any window of class:
"Internet Explorer_Server"
But in some cases it might be necessary to walk
a process "window tree" to sort them out.
How to get IHTMLDocument2 from a HWND
"RLoski" <RLo...@discussions.microsoft.com> wrote in message
news:8D3B7C9D-8806-4966...@microsoft.com...