script call open website

Discussion in 'RPG Maker MV' started by lolshtar, Feb 10, 2017.

  1. lolshtar

    lolshtar Master of Magic thatknow nospell Veteran

    Messages:
    694
    Likes Received:
    101
    First Language:
    French
    Primarily Uses:
    RMMV
    I had it a while ago but I can't seem to find it anymore.

    Does anyone know what is the script call to open a website?
     
    #1
  2. shayoko

    shayoko Veteran Veteran

    Messages:
    208
    Likes Received:
    121
    First Language:
    English
    found this for VX Ace

    # Use The Following in a Script Call:
    # open_website( url )
    # Replacing the URL with a websire url in quotation marks
    # So the Following would be valid:
    # open_website( "rmrk.net" )

    class Game_Interpreter
    def open_website( url )
    url.gsub!("http://", "")
    Thread.new { system("start http://#{url}") }
    end
    end
     
    #2
  3. lolshtar

    lolshtar Master of Magic thatknow nospell Veteran

    Messages:
    694
    Likes Received:
    101
    First Language:
    French
    Primarily Uses:
    RMMV
    Yeah, I have no idea how to write that for mv
     
    #3
  4. shayoko

    shayoko Veteran Veteran

    Messages:
    208
    Likes Received:
    121
    First Language:
    English
    #4
  5. lolshtar

    lolshtar Master of Magic thatknow nospell Veteran

    Messages:
    694
    Likes Received:
    101
    First Language:
    French
    Primarily Uses:
    RMMV
    No, unfortunately I need a script call. I'm not using a title screen.
     
    #5
  6. biud436

    biud436 Veteran Veteran

    Messages:
    151
    Likes Received:
    142
    Location:
    South Korea
    First Language:
    Korean
    Primarily Uses:
    RMMV
    Try this :
    Code:
    // Open URL in a new window
    window.open('https://github.com/nwjs/nw.js', '_blank');
    
    // Open URL with default browser (Windows Or Mac Only)
    require('nw.gui').Shell.openExternal('https://github.com/nwjs/nw.js');
    
     
    #6
    Biestmann and Fring Frang like this.
  7. lolshtar

    lolshtar Master of Magic thatknow nospell Veteran

    Messages:
    694
    Likes Received:
    101
    First Language:
    French
    Primarily Uses:
    RMMV
    Works perfectly, sorry for the late reply l never got a warning and got stuck in a massive shitstorm this month.

    Added you in credits.
     
    #7
    biud436 likes this.

Share This Page