So I am currently using this to send chat to another window.
What if I wanted to make an alias that send a lua command to that window? Specifically DeleteOutput()
I have attempted to use this, but it doesn't seem to recognize the command. (It's a dummy world, connecting to 0.0.0.0 named "chat")
I can't seem to get it to work.
Thanks for the help
Please read the MUSHclient FAQ - point 23.
What if I wanted to make an alias that send a lua command to that window? Specifically DeleteOutput()
I have attempted to use this, but it doesn't seem to recognize the command. (It's a dummy world, connecting to 0.0.0.0 named "chat")
-- --------------------------------------------------
-- Example showing sending a message to another world
-- --------------------------------------------------
function SendToWorld (name, message)
local otherworld
otherworld = GetWorld (name)
if otherworld == nil then
Note ("World " .. name .. " is not open")
return
end
Send (otherworld, message)
-- alternative syntax: otherworld:Send (message)
end -- of SendToWorld
SendToWorld ("MyOtherWorld", "say Hi there")
I can't seem to get it to work.
Thanks for the help