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
can not Execute("hp;/print('ok')")
Posted by Alexz on Sun 09 Nov 2008 10:06 AM — 3 posts, 14,603 views.
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:
That will work better anyway if:
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.
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
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