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
➜ Mock input for testing regex triggers?
Mock input for testing regex triggers?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Kahenraz
(75 posts) Bio
|
Date
| Mon 12 Sep 2016 12:32 PM (UTC) Amended on Mon 12 Sep 2016 12:33 PM (UTC) by Kahenraz
|
Message
| Is there a way to send mock output to the world to test against complex regex matches?
Edit:
Can't modify title. Should be mock output. :) | Top |
|
Posted by
| hogarius
USA (22 posts) Bio
|
Date
| Reply #1 on Mon 12 Sep 2016 02:45 PM (UTC) Amended on Tue 13 Sep 2016 04:31 AM (UTC) by hogarius
|
Message
| I think you're looking for the Simulate() function.
| Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #2 on Tue 13 Sep 2016 08:11 PM (UTC) |
Message
| I usually use "Debug Simulated World Input" (Shift+Ctrl+F12) - see the Game menu. It's labelled Game -> Test Trigger ...
You can type multiple lines of input (use Ctrl+Enter for a newline) and there is a box at the top for entering special sequences like ANSI codes, MXP codes and Unicode. Make sure you have a final newline (blank line) after the test otherwise the trigger won't fire (yet).
For scripted testing the Simulate function could be used (this could be handy if you are testing the same thing many times). However the "Test Trigger" dialog remembers your last test, so you can re-test the same thing simply by doing Shift+Ctrl+F12 followed by Enter. |
- 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.
12,683 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top