hyperlink to open url

Posted by Bast on Thu 15 Jul 2010 08:29 PM — 4 posts, 20,818 views.

#0
Running into a problem that I can't seem to figure out.

I want to add a hyperlink that will open a browser from a miniwindow. I can do it easily to the output window with the Hyperlink function.

Ideas from a miniwindow?

Bast
USA #1
Use WindowText() to draw the text, WindowTextWidth() to get the width of the text, WindowFontInfo() to get the height of the font, and WindowAddHotspot() to add a clickable hotspot over the text. The documentation for each is good, and it shouldn't be hard to do at all. :)

I'm not sure how to make the hotspot open a browser though, honestly. Not something I've really ever looked into.
Australia Forum Administrator #2
Template:function=OpenBrowser
OpenBrowser

The documentation for the OpenBrowser script function is available online. It is also in the MUSHclient help file.



I had hyperlinks in this plugin, however it just did stuff on the MUD, not open a browser:

Template:post=9664
Please see the forum thread: http://gammon.com.au/forum/?id=9664.


A combination of drawing the underlined text as in that plugin, and OpenBrowser, should do it for you.
#3
Wow, I did not see OpenBrowser.


Thanks,
Bast