HISE Logo Forum
    • Categories
    • Register
    • Login

    How to open url with default browser from plugin?

    Scheduled Pinned Locked Moved General Questions
    9 Posts 4 Posters 952 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pes
      last edited by

      Hi, how can I open a url in the os default-browser from plugin?

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        Engine.openWebsite()

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 0
        • P
          pes
          last edited by

          @d-healey Thank you!

          1 Reply Last reply Reply Quote 0
          • Dominik MayerD
            Dominik Mayer
            last edited by Dominik Mayer

            And most people use it in connection with a ScriptPanel. (one-click link..)
            remember to set the allowCallbacks property of the ScriptPanel to "Clicks Only"

            Content.makeFrontInterface(250, 100);
            
            const var Panel1 = Content.getComponent("Panel1");
            
            Panel1.setPaintRoutine(function(g)
            {
                g.setColour(Colours.antiquewhite);
                g.drawText("wikipedia.org", [0,0,100,20]);
            });
            
            Panel1.setMouseCallback(function(event)
            {
              if (event.clicked)
                Engine.openWebsite("https://www.wikipedia.org/");
            });
            

            bst,d

            1 Reply Last reply Reply Quote 1
            • P
              pes
              last edited by

              @Dominik-Mayer thanks, this solved my follow up question!

              1 Reply Last reply Reply Quote 0
              • M
                mwplugs
                last edited by

                this doesnt work anymore. how would you do this now?

                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @mwplugs
                  last edited by

                  @mwplugs Do you get an error message?

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  M 1 Reply Last reply Reply Quote 1
                  • M
                    mwplugs @d.healey
                    last edited by

                    @d-healey the method in this thread works https://forum.hise.audio/topic/1803/website-buttons-question-testing-2-different-methods

                    d.healeyD 1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey @mwplugs
                      last edited by

                      @mwplugs Sure does, but the method in this thread also works.

                      HiseSnippet 882.3ocsU0siSbCE1NaFfjxh.o9.LJ2PVoP1I7u.UUXylsJpr6F0rkVoJDxqmSxXkYrmN1yNDg3RdU30CdCZOdbxNIk.BhT8MiO+Y+Mmy243QYJNn0pLBswYySAB85dimKMQ8iXBIY3gD5M7NloMPluS0AySYZMDRnzc9EqBZi5jx0m94CXwLIGpTQHuTI3vKDIBSk1QO6WEwwGwBgyDIq388e1PtR1WEqxQ7riW.IkwmwlBmvrtUyiPuxfPgQkM1vLfF84.U37wQpBoy+WJzhyiAqPOxX7fbpI8iDwgiV9upIDZ8QU+4639y+QuiEghK0WkAtYoA+pHVMGPqsNjpuFj58kfzQp3P6A7EfGcE3U2Aua4MlmIRMUVrX6G7FJwhyDFl1WEVNeI09H0quB8PZ5lvlAGkgBWFQ6GFDzw+AAA68zca1Dy8Zi+ErL+QLID2y+m7WF5TvzWkjpjnP6VNys16oMa511UClQX1x7apbiPBsmjK4FgR1d5dMeaSebM05iqz118Q2kIMh+NGJhDF.OLmagYrhyf2fWSgXlHEBErtpros53+WAcB5zCQ7cCdE596V+9OVkqg9r33yQNSE.fKPH6.gXhuSrKOVvmAg6UdkCjSQH2UkBx+.NWiXocqHiIU+j82unnn6ZvX+Vtad446qjmnLvox116nQy20z++ZZxjMZylZyTwwP1FMa6Lx9ZA1VlmbNj0AKXw4vkNhzk04iW4aiOxcU5UbTIGJElSwzhSthw1aCLVxBpBt62GdHyvrj3E5P+RgLivBG5gvE3DAGktg2gfdlQkV56B9EgdUSo0cWR3s0Xh.u5q44p2j2PndzOf20b6l2iavBupXY4WaCtusHq8OUFOmTHBMQVWuMkPh.wzHiU5ikSi9rNMreWElGyLqODvNsagArRrV2lsiRhTm4qNM76XxPvFmLrw772Hbuk2HggGsY7VaC3EqW+ei2EyY20avjI.2TA15dG8ma6P0uCn3lNM8XlISXYPmjmLFGDwADIRjWosbhZVtrSNvJayLiAYXov+fqEF6YkoKL1aoQRBimodM20iZmjesRMHljkOh0.eMEk86QJ6aw37B5FPRvGXdMmaSE2Aw9li4taQL2aKh49aQLOXKh4gaQLOZKh4we0Xrus+7biJw0lfJFMnb.FkNPxPVVIij7u.n.I32
                      

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      49

                      Online

                      1.7k

                      Users

                      11.7k

                      Topics

                      101.8k

                      Posts