Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: How to close the default browser in perl

by Corion (Patriarch)
on Jan 19, 2015 at 08:29 UTC ( [id://1113713]=note: print w/replies, xml ) Need Help??


in reply to Re: How to close the default browser in perl
in thread How to close the default browser in perl

Note that killing the browser process will likely also kill all other browser windows and browser tabs that are currently open. A user might not be amused if a program does stuff like that.

  • Comment on Re^2: How to close the default browser in perl

Replies are listed 'Best First'.
Re^3: How to close the default browser in perl
by Discipulus (Canon) on Jan 19, 2015 at 08:35 UTC
    yes, of course. This may heavely depends on th OS, i think. in win7 for example there is a PID for every tab open and if you kill such PID the tab only goes in error if is a tab in a group. if you close a 'main' window via kill you kill all windows at same time, and is not a nice thing.

    Please ppp note that 'default browser' is only a facility of an OS not a Perl concept.

    L*
    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
      Hey hii, Isn't it possible to write a script for Alt +F4 ?
        Hello ppp, you are mixing Perl and OS issues. Alt+F4 is an OS feature. If you are on windows you can write in Perl some wrapper around autohotkey

        HtH
        L*
        There are no rules, there are no thumbs..
        Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1113713]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (8)
As of 2024-04-19 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found