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
➜ Lua
➜ How to use AddTrigger to add a trigger with 'Repeat on same line' set?
|
How to use AddTrigger to add a trigger with 'Repeat on same line' set?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| j0nas
(56 posts) Bio
|
| Date
| Sat 09 Sep 2006 08:50 PM (UTC) |
| Message
| I'm trying to use AddTrigger to add a trigger with, among other things, the 'Repeat on same line' flag set. The 'trigger_flag'-flags listed in the help-files don't mention any such flag.
Is that flag available? If not, is the constant I need available to be thrown in there 'manually' instead? | | Top |
|
| Posted by
| Nick Gammon
Australia (23,166 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sat 09 Sep 2006 10:38 PM (UTC) Amended on Sat 09 Sep 2006 10:39 PM (UTC) by Nick Gammon
|
| Message
| See this thread:
http://www.gammon.com.au/forum/?id=7123
And this one:
http://www.gammon.com.au/forum/?id=7336
If you are using MUSHclient 3.80, it is simple, as the necessary code mentioned in the first post is now in a separate module. Thus you could do something like this:
require "addxml"
addxml.trigger { match = "swordfish",
regexp = true,
['repeat'] = true, -- repeat is lua keyword
send = "hi there",
sequence = 50,
enabled = true,
name = "boris",
}
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Nick Gammon
Australia (23,166 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Sat 09 Sep 2006 10:41 PM (UTC) |
| Message
| |
| Posted by
| j0nas
(56 posts) Bio
|
| Date
| Reply #3 on Sun 10 Sep 2006 07:58 AM (UTC) |
| Message
| | The addxml.trigger was a very neat solution that solved another problem of mine I had already forgotten about. Thanks! | | 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.
17,686 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top