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 ➜ Sub/Triggers

Sub/Triggers

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


Posted by Scarn   (47 posts)  Bio
Date Tue 26 Jul 2005 09:10 PM (UTC)
Message
Hi again:)

I want a sub trigger...

so that when i see '* is in perfect shape'


it sustitute it and instead see...

Perfect - %2 - Perfect...

I can send it AFTER the first line easily, but i'd like the script to replace it...if possible.

Thanks,

Scarn.
Top

Posted by Larkin   (278 posts)  Bio
Date Reply #1 on Wed 27 Jul 2005 06:55 PM (UTC)
Message
Just check the 'omit from output' to gag the line and then use the script functions to echo the output in the format and colors you desire. Should work just fine.
Top

Posted by Scarn   (47 posts)  Bio
Date Reply #2 on Wed 27 Jul 2005 07:45 PM (UTC)
Message
nope, that omits everything...even the script.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Mon 01 Aug 2005 07:36 AM (UTC)
Message
I think you will find that if you do that in "send to script" it will indeed delete the notes as well. However if you call a script (put a trigger sub name into the function box) then it will correctly display the line.

- Nick Gammon

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

Posted by Scarn   (47 posts)  Bio
Date Reply #4 on Tue 09 Aug 2005 06:50 PM (UTC)
Message
Hmmm, Im still confused.

I have a script trigger sending so when I see this...

Orc is in perfect shape.

i instead see this:

Orc is in perfect shape.
Perfect - Orc - Perfect

I can block out 'Orc is in perfect shange' by changing its colour, but i would like to actually REPLACE it.
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.


21,972 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.