>| Well, then you just take the best of both ... first, you open a new
>| window and then you do what you did before. I pretty sure that the
>| ShellExecute will target this new browser. At least, when I click a link
That was so blatantly obvious that I'm hiding in a corner for not seeing it
myself. I tried it this morning using the following code:
use Win32::TieRegistry;
my $http = $Registry->{"Classes\\http\\shell\\open\\command"}->{'\\'};
unless ( fork ) { system("$http"); }
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 works fine in IE6b. I'll assume it works fine elsewhere. It does very
weird things on Mozilla though. Can anyone try this on Netscape to see if
it's similar (I don't have NS on this machine, only Moz).
What I'm seeing with Moz:
a) before running script, open Moz.
b) run script.
c) script opens 2 (new) windows. both
windows eventually have the URL in it.
Sometimes, even weirder, I get THREE windows opening, the first two with
the correct URL, the third with a blank search on Netscape's pages. Sigh. I
like Mozilla, but sheesh, this ain't gonna work.
Morbus Iff
.sig on other machine.
http://www.disobey.com/
http://www.gamegrene.com/