get back last send to world text

Posted by Avariel on Tue 27 Aug 2002 04:51 PM — 3 posts, 15,513 views.

Portugal #0
what im trying to do is set a trigger that redo the last 'send to world action' from the last function.

something like.. a trigger runs the function

function at_trigger () {
world.send ("say something to mud");
}

that send text wont go to command window so i cant go there and get last command to do it again. ide like to know if theres any way to , after i send something to mud, i go back and get what i send to do something with it.

thx.
Australia Forum Administrator #1
After quite a bit of mucking around it seems to me that the current version of MUSHclient does not easily support doing that.

Thus, in version 3.27 there is a new function "SendPush" that sends the command *and* puts it into the history window.

Then you can just recall it with up-arrow, or re-send it with Ctrl+R.
Portugal #2
thx nick,

that command will help a lot in my scripts.