[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-win32-users
Subject:    Opening a *New* Browser Window?
From:       Morbus Iff <morbus () disobey ! com>
Date:       2001-05-31 17:14:55
[Download RAW message or body]

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/



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

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic