How to open url with default browser from plugin?
-
Hi, how can I open a url in the os default-browser from plugin?
-
Engine.openWebsite()
-
@d-healey Thank you!
-
And most people use it in connection with a ScriptPanel. (one-click link..)
remember to set theallowCallbacks
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
-
@Dominik-Mayer thanks, this solved my follow up question!
-
this doesnt work anymore. how would you do this now?
-
@mwplugs Do you get an error message?
-
@d-healey the method in this thread works https://forum.hise.audio/topic/1803/website-buttons-question-testing-2-different-methods
-
@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+.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