I am wanting to create triggers that substitute the text received (or part of the text received) with a hyperlink which allows it to be clickable and perform the command (really lazy mudding!). Some hyperlinks I would rather have text added to the input bar (er, text bar.. command bar? whatever it is at the bottom that you type in). Or in possibly rare situations make a list off of the link. I've been trying to find the possible commands to do this, but I haven't found them yet. Any assistance would be GREATLY appreciated. Thank you!
MXP, and substitution
Posted by Devic on Sun 28 Nov 2010 10:43 PM — 3 posts, 14,165 views.
There is an example of that in the Hyperlink_URL2 plugin. See:
http://www.gammon.com.au/plugins/
The basic technique is to omit the desired lines from output, and then substitute with a line with hyperlinks in it.
You can call functions from hyperlinks by using the special syntax documented there, and those functions could show lists, change the command window etc.
http://www.gammon.com.au/scripts/doc.php?lua=utils.listbox
http://www.gammon.com.au/plugins/
The basic technique is to omit the desired lines from output, and then substitute with a line with hyperlinks in it.
Hyperlink
The documentation for the Hyperlink script function is available online. It is also in the MUSHclient help file.
You can call functions from hyperlinks by using the special syntax documented there, and those functions could show lists, change the command window etc.
PushCommand
The documentation for the PushCommand script function is available online. It is also in the MUSHclient help file.
http://www.gammon.com.au/scripts/doc.php?lua=utils.listbox
Awesome! Thanks Nick, always very quick and helpful! That is exactly what I was looking for, and already started working with it! :)