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 ➜ Trigger doesn't match immediately problem

Trigger doesn't match immediately problem

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


Posted by Vls87   (3 posts)  Bio
Date Sun 09 Jul 2006 09:00 AM (UTC)

Amended on Sun 09 Jul 2006 09:04 AM (UTC) by Vls87

Message
I'm facing a problem:when a trigger's pattern appear,the trigger will not match and send the commands in the "send box".At this time,in "Edit Trigger" windows,it tells the trigger doesn't match.

It will be matched after a new line come out.

How can I make it match and send the commands at the moment the trigger's pattern appears?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 09 Jul 2006 09:32 AM (UTC)
Message
This has been discussed many times on this forum. An explanation of the trigger matching process is here:

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=6554

Basically, data that arrives from the MUD may be in multiple packets, it isn't feasible for all trigger matching to occur when a partial line arrives.

However if you really want to, look at the plugin callback OnPluginPartialLine described on this page:

http://www.gammon.com.au/scripts/doc.php?general=plugin_callbacks

Using this you can match before a newline arrives.

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


11,381 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.