Try this:

use Win32::TieRegistry;
$http = $Registry->{"Classes\\http\\shell\\open\\command"}->{'\\'};
`$http $url`;

I did not try with other browsers, though, just Micro$tuff.

Have fun,
Harald

-----Original Message-----
From: Morbus Iff [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 31. Mai 2001 13:18
To: perl-win32-gui-users@lists.sourceforge.net
Subject: [perl-win32-gui-users] Opening a *New* Browser Window?


Good day.

Currently, in my code [the opensource AmphetaDesk at
http://www.disobey.com/amphetadesk/], I open a browser window like so:

    use Win32::API;
    my $ShellExecute = new Win32::API("shell32", "ShellExecuteA",
                       ['N','P', 'P', 'P', 'P', 'I'], 'N');
    $ShellExecute->Call(0, "open", $url, 0, 0, 1);

This has the niceness of working with most browsers I've tested that have
been set as the default browser (Netscape, Mozilla, IE, etc.). My problem
is that this code always uses an *existing* browser window if it exists.

This causes some angst - if I'm viewing something, and then suddenly the
program takes over and loses my current page, I get pissed. So, anyways to
always open a *new* window, whether an existing one is there or not?


Morbus Iff
.sig on other machine.
http://www.disobey.com/
http://www.gamegrene.com/


_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users

Reply via email to