[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  MXP, and substitution

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

MXP, and substitution

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Devic   USA  (2 posts)  [Biography] bio
Date Sun 28 Nov 2010 10:43 PM (UTC)  quote  ]
Message
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!
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 28 Nov 2010 11:14 PM (UTC)  quote  ]
Message
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.

Template:function=Hyperlink 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.

Template:function=PushCommand 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


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Devic   USA  (2 posts)  [Biography] bio
Date Reply #2 on Mon 29 Nov 2010 01:36 AM (UTC)  quote  ]
Message
Awesome! Thanks Nick, always very quick and helpful! That is exactly what I was looking for, and already started working with it! :)
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


756 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]