View Single Post
Old 09-06-2019, 01:28 AM   #1866
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 1,082
Default

Quote:
Originally Posted by Phazma View Post
I would find it useful if there was a script that allows the user to put an url inside it. When running the script it should open the user's preferred browser and the desired webpage inside the browser.
This is from Mordi Chord Finder

Code:
-- Made by Mordi, Jan 2016

-- Function for opening a URL
function OpenURL(url)
  local OS = reaper.GetOS()
  if OS == "OSX32" or OS == "OSX64" then
    os.execute('open "" "' .. url .. '"')
  else
    os.execute('start "" "' .. url .. '"')
  end
end

retval_url, input_url  = reaper.GetUserInputs("Type url", 1, "Enter url >", "http://www.")
            
            
if retval_url then
    url = input_url
    OpenURL(url)

end
__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
MusoBob is offline   Reply With Quote