BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to get ALL of the ACTIVE instances of MS-IE

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
edo
Guest





PostPosted: Wed Dec 10, 2003 5:58 pm    Post subject: how to get ALL of the ACTIVE instances of MS-IE Reply with quote



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.




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.