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


Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Tips and tricks
. . -> [Subject]  Pasting XML

Pasting XML

This subject is now closed.     [Refresh] Refresh page


Posted by Nick Gammon   Australia  (23,019 posts)  [Biography] bio   Forum Administrator
Date Sun 17 Oct 2004 02:35 AM (UTC)

Amended on Tue 25 May 2010 05:43 AM (UTC) by Nick Gammon

Message

See further down for a video podcast demonstrating how to do this.

You may see on the forum, in emails, or elsewhere, triggers, aliases or timers in XML format, like this:


<triggers> <trigger custom_colour="2" enabled="y" group="eat_drink" match="You are thirsty." name="thirst_trigger" sequence="100" > <send>get flask bag drink flask put flask bag</send> </trigger> </triggers>

To use them copy the entire text (from, and including <triggers> ... </triggers>) to the Windows clipboard. (Or, <aliases> or <timers> as the case may be).

Important: - the <triggers> line is required (and the corresponding </triggers> line).

Then go into the MushClient triggers configuration window (if you have a trigger on the clipboard), and click the "Paste" button, like this:

The trigger will now be pasted into the trigger list, and you can edit it:

Once you edit it you will see the trigger as if you had entered it yourself:


- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,019 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Tue 13 Jun 2006 06:25 AM (UTC)
Message

An alternative method of pasting, which may save a couple of keystrokes, and which is useful if you have triggers and aliases to be pasted, is to use the File -> Import menu.

You will see a dialog like this:

The "Clipboard" button will be greyed out if there is no valid XML information on the clipboard.

Simply click on the "Clipboard" button and you will see a confirmation dialog of how many triggers, aliases, timers etc. were imported, like this:


- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,019 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Fri 13 Oct 2006 03:49 AM (UTC)

Amended on Wed 19 Aug 2009 04:09 AM (UTC) by Nick Gammon

Message
If the trigger (or alias, or timer) does a "send to script" then you also need to ensure that scripting is enabled.

You can tell by looking next to the "Send to:" label in the trigger/alias/timer. If you see the word "Script" then it is using scripting.

To enable scripting go to the World Configuration dialog -> Scripting section, and check the "Enable Script" checkbox.

Template:scripting Scripting tutorial

There is extensive information about scripting in MUSHclient at http://mushclient.com/scripting. This includes screen shots and examples.



You also need to check that the appropriate script language is selected. Nowadays a lot of scripts use Lua, but if you are in doubt read the forum posting for a clue about the script language.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,019 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Tue 17 Apr 2007 07:43 AM (UTC)

Amended on Wed 19 Aug 2009 04:07 AM (UTC) by Nick Gammon

Message
Template:copying For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,019 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Tue 25 May 2010 12:30 AM (UTC)

Amended on Fri 11 Jul 2014 12:47 AM (UTC) by Nick Gammon

Message

Below is a one-minute podcast that shows how to copy from a forum page and paste into MUSHclient:

You can download and save a larger version of the podcast to your computer by RH-clicking on Copying triggers etc. from the forum and pasting into MUSHclient (1.6 Mb). Video files should be playable by programs such as VLC.

Embedded <video> tags (which are used by this post) are supported now by major web browsers. Minimal versions for such support are:

  • Chrome 4.0
  • Internet Explorer 9.0
  • Firefox 3.5
  • Safari 4.0
  • Opera 10.5

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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.


38,241 views.

This subject is now closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at HostDash]