I'm using the following code in an attempt to control IE through OLE,
the code is what seems right (to me) from the Win32::OLE Browser.

use Win32::OLE;

my $url = 'http://www.google.com/';

my $IE = Win32::OLE->new('InternetExplorer.Application',
                         'Quit') or warn Win32::OLE->LastError;
$IE->Visible or warn Win32::OLE->LastError;
$IE->Navigate($url) or warn Win32::OLE->LastError;
$IE->GoHome or warn Win32::OLE->LastError;

I've checked and $IE is defined by Win32::OLE->new. The only error I
get is "error: 0 at ie.pl" for each line where I've called a method on
$IE. 

-- 
Stephen Patterson http://www.lexx.uklinux.net/
[EMAIL PROTECTED] (remove spam to reply)
ICBM address 54-22-0N 0-28-0W  Linux Counter No: 142831 
GPG Public key: 252B8B37 available on public keyservers.
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to