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
➜ Bug reports
➜ Execute, aliases, and newlines
|
Execute, aliases, and newlines
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Fiendish
USA (2,555 posts) Bio
Global Moderator |
| Date
| Fri 01 Apr 2011 11:30 AM (UTC) Amended on Fri 01 Apr 2011 12:23 PM (UTC) by Fiendish
|
| Message
| I construct an alias called "myalias" that sends some things to the world, for example like so:
get badge bag
wear badge
enter
wear amulet
run sw
put badge bag
So then (with script prefix \\)...
\\Execute("myalias;run 3w")
works with ";" as my command stack char. It executes myalias and then runs 3w.
\\Execute("run 3e\nrun 3w")
works as well, running 3e and then running 3w.
also works, executing myalias.
But,
\\Execute("myalias\nrun 3w")
does not work. It tries to send "myalias" to the mud without executing it and then runs 3w. |
https://github.com/fiendish/aardwolfclientpackage | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sat 02 Apr 2011 07:08 AM (UTC) |
| Message
| Well I see the problem. The documented behaviour of breaking up what you type into lines, and then processing them individually, depends on breaking on the \r\n sequence (which is what it normally gets when you type into the edit control).
However you manually inserted a newline without a carriage-return. Thus it ended up with the two-line sequence as a single command, which was not recognized as an alias.
I think I would have to agree this is a bug, and it will be fixed in version 4.73.
|
- 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.
7,393 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top