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
➜ can not Execute("hp;/print('ok')")
|
can not Execute("hp;/print('ok')")
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Alexz
(2 posts) Bio
|
| Date
| Sun 09 Nov 2008 10:06 AM (UTC) |
| Message
| | seems Execute can not handle commands followed by a script, as title showed, which echo hp, and then /print('xixi'), but don't parse the script. I use lua and run on Vista | | Top |
|
| Posted by
| Nick Gammon
Australia (23,169 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sun 09 Nov 2008 06:59 PM (UTC) |
| Message
| See:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=6572
Scroll down to: "world.Execute processing", point 2. The scripting prefix only applies to the start of the command. This also applies to commands typed into the command window.
If you are writing a script anyway, why not do this:
Execute ("hp")
print ('ok')
That will work better anyway if:
- You change the command stack character to something other than ";"
- You turn command stacking off
- You change the scripting prefix to something other than "/"
- You have no scripting prefix.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Alexz
(2 posts) Bio
|
| Date
| Reply #2 on Mon 10 Nov 2008 10:55 AM (UTC) |
| Message
| Got it, thank Nick.
In fact, I am building a commands queries, which used to parse a long command which with special char inside, for delay and waiting triggers, ex. cmd="e;e;s;wait(3);w;n;wait("you get");hp"
when parse this string, I try to insert AddTimer and AddTrigger in, so I encounter the problem I posted.
but no problem, I will try other method | | 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.
13,531 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top