Pavel has asked for the wisdom of the Perl Monks concerning the following question:
Hi, all Perl people!
I'm trying to use OLE objects (IE, actually) via Perl with the following code:
Ev - the event handling procedure.use Win32::OLE qw(EVENTS); unless (defined $ie) { $ie = Win32::OLE->new('InternetExplorer.Application') or die +"Oops, cannot start IE"; } $ie->Navigate('c:\some_dir\some_doc.htm'); while ($ie->Busy) {} $ie->{Visible} = 1; Win32::OLE->MessageLoop(); Win32::OLE->WithEvents($ie, \&Ev);
IE window with the document loaded appears on screen, but I cannot handle any events - it seems as if my program does not catch them.
Please, help me. I will greatly appreciate any tip or advice or just a code example where OLE events handling by Perl works.
Thank You,
Pavel.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I handle an OLE object events?
by perlmoth (Hermit) on Dec 10, 2001 at 00:04 UTC | |
by bennis (Initiate) on Feb 13, 2002 at 10:14 UTC | |
|
Re: How do I handle an OLE object events?
by LD2 (Curate) on Dec 10, 2001 at 10:50 UTC | |
|
Re: How do I handle an OLE object events?
by NicS (Scribe) on Dec 12, 2001 at 02:29 UTC |