Dear monks,
I have a problems interacting with the Internet Explorer started as Win23::OLE-object after navigating to an intranet site.
I've got the following code:
use Win32::OLE;
use Win32::OLE::Variant;
use strict;
use warnings;
my $IE = Win32::OLE->new('InternetExplorer.Application') or die "Unabl
+e to create a IE Object\n";
$IE->{Visible} = 1;
$IE->Navigate('http://www.google.com');
sleep 1 while($IE->{Busy});
$IE->Quit();
This script works fine, the Internet Explorer opens, goes to www.google.com and then closes again.
But if I replace the www.google.com with an intranet address (or a https-page) the Internet Explorer opens, navigates to the page and stays open - while the script ends.
Could anyone please tell me why I cannot interact with the object any more after navigating to an intranet site?
Thanks in advance and best regards
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.