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, confirm your email, resolve issues, 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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Hyperlink a list of people

Hyperlink a list of people

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2 

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #15 on Wed 31 Jan 2007 09:36 PM (UTC)
Message
In my test above, I simply used a multi-line string, which would have had \n (newline) characters at the end of each line.

If you are building it up, line-by-line, I would use:

Send to script: wholist_string = wholist_string .. " " .. "%1"

First, you need to quote %1, otherwise you will get all sorts of strange errors. Second, I would put in a space, so that a word at the end of one line doesn't run into a word at the start of the next, although that may not be necessary depending on the exact data.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Gore   (207 posts)  Bio
Date Reply #16 on Thu 01 Feb 2007 12:56 AM (UTC)

Amended on Thu 01 Feb 2007 12:58 AM (UTC) by Gore

Message
Is it considered poor practice that I don't actually use any sort of scripting in my aliases/triggers/timers, but rather I always reference a function/subroutine?

And thanks a lot for your help! I think I might have to do it your way, as I plan to expand this script.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #17 on Thu 01 Feb 2007 04:58 AM (UTC)
Message
I don't have a problem with using the script file for bigger projects - for one thing, you get syntax checking at the start (when the script is loaded), and not when each alias etc. is used.

I tend to use "send to script" for simple actions, and also for demonstrating things here in the forum, because I don't have to tell people to copy and paste code into a script file, set the file name in the scripting tab, and so on.

- Nick Gammon

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


51,001 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

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