Page 1 of 1

Launch browser

Posted: Fri Jul 25, 2014 12:29 pm
by marcoagpinto
Why can't Freddy code a command that works in the three OSes to launch the browser?

So far, one has to use:

Code: Select all

    url$="http://marcoagpinto.cidadevirtual.pt/proofingtoolgui.html"
    CompilerSelect #PB_Compiler_OS
      CompilerCase #PB_OS_Linux
        RunProgram("xdg-open",url$,"")
      CompilerCase #PB_OS_Windows
        RunProgram(url$)
      CompilerCase #PB_OS_MacOS
        RunProgram("open", url$, "") 
    CompilerEndSelect


Why not a command?

Re: Launch browser

Posted: Fri Jul 25, 2014 12:33 pm
by Fred
As you posted, you can easily do it in PB with a few commands, so why adding one single command for it ? And this too specific, why not a command to launch a Notepad, or a Calculator ? If we start to add simple commands like that, the commandset will be too big.