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 ➜ VBscript ➜ world.DoAfterNote + Color

world.DoAfterNote + Color

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


Posted by Webkid   USA  (22 posts)  Bio
Date Sat 22 May 2004 01:58 AM (UTC)
Message
Is there any way to color a note from world.DoAfterNote?

-Webkid
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 22 May 2004 02:32 AM (UTC)
Message
You can use DoAfterSpecial, which lets you send a script command after x seconds. Here is an example:


world.DoAfterSpecial 3, "ColourNote ""white"", ""red"", ""hi there""", 12


What this example does is:


  1. After 3 seconds ...

  2. Send: ColourNote "white", "red", "hi there"

  3. Send to the scripting engine (12)


In the example above the arguments to ColourNote have double-quotes around them because it is quotes within quotes.

Look at the help for DoAfterSpecial for more details.

- Nick Gammon

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

Posted by Webkid   USA  (22 posts)  Bio
Date Reply #2 on Sat 22 May 2004 04:45 AM (UTC)
Message
Awesome, thanks Nick.

-Webkid
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.


13,095 views.

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.