edo Guest
|
Posted: Wed Dec 10, 2003 5:58 pm Post subject: how to get ALL of the ACTIVE instances of MS-IE |
|
|
Hello,
I'm trying to find out a way to get all of the ACTIVE instances of MS-IE,
and then
get the active html-body of each.
the following code works fine for a NEW instance:
procedure TForm1.Button1Click(Sender: TObject);
var
IE, Doc, Bod, V: Variant;
begin
IE := CreateOleObject('InternetExplorer.Application');
IE.Navigate('www.borland.com', V, V, V, V);
IE.Visible := false;
while IE.Busy do sleep(0);
Doc := IE.Document;
Bod := Doc.Body;
memo1.Lines.Text:=Bod.InnerHTML;
end;
but, as i said, i need to do the same with ALL of the already opened IE
windows....
i tried,
IE := GetActiveOleObject('InternetExplorer.Application');
it did not work, and anyway i do not see how this can help me get ALL of the
opened IEs.
BTW, i also need to do the same with Netscape and Opera.... i guess they
also have OLE objects, right?
thanks in advance for any help.
edo.
|
|