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
➜ MXP and Pueblo
➜ Simulate & MXP
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Beale
(35 posts) Bio
|
Date
| Wed 02 May 2007 09:57 AM (UTC) Amended on Wed 02 May 2007 10:00 AM (UTC) by Beale
|
Message
| Okay, this seemed like the best place for this little question.
Essentially, I have an Element specification, which replaces one sent by the MUD. I can see it works, because I can insert it with the Test Trigger window. However! I am now trying to automate the process, using the Simulate function, and it seems that it cannot simulate the \1B[4z code (the MXP secure-once code).
It needs the MXP Secure mode because element specifications in open mode aren't acceptable, but I don't seem to be able to begin secure mode using the function.
Any clues?
Oh, and the line, just for reference, is:
\1B[4z<!ELEMENT invobjectpopup '<send href="look &text;|frimble &text;|juggle &text;|drop &text;|read &text;|condition &text;" PROMPT hint="Right click for menu">&text;</send> '>
It's supposed to allow the simple creation of right click menus for objects.
And the Simulate line is currently:
Simulate("\1B[4z<!ELEMENT invobjectpopup '<send href=\"look &text;|frimble &text;|juggle &text;|drop &text;|read &text;|condition &text;\" PROMPT hint=\"Right click for menu\">&text;</send> '>")
Which produces: (a little character that breaks the webform but looks something like an upside-down L)B[4z
and the error saying that the MXP definition is ignored due to not being in secure mode.
Admittedly, I can see that having Simulate able to enter secure mode might have slight security concerns, but is it possible? Or can I simulate the received data somehow else? | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Wed 02 May 2007 10:06 AM (UTC) |
Message
| What language are you using? If it is Lua, you can't use \1B to insert an escape. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Beale
(35 posts) Bio
|
Date
| Reply #2 on Wed 02 May 2007 10:29 AM (UTC) |
Message
| Aha! Yes, I used string.char(27) instead, and it seems to work.
Thank you for the help. | 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,756 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top