Combine SendNoEcho & SendImmediate

Posted by gameshogun on Wed 11 Oct 2017 12:44 AM — 2 posts, 12,533 views.

Philippines #0
Is it possible or is there a way to combine SendNoEcho and SendImmediate in Lua scripting?

Or if not, maybe a new feature added?

Something like:
SendImmediateNoEcho ("get disc")

Thank you!
Australia Forum Administrator #1
You can do it with EchoInput:

Template:function=EchoInput
EchoInput

The documentation for the EchoInput script function is available online. It is also in the MUSHclient help file.



You can make your own function, eg.


function SendImmediateNoEcho (s)
   local oldInputFlag = GetEchoInput ()  -- save echo flag
   SetEchoInput (false)  -- turn echoing off
   SendImmediate (s)     -- send the string
   SetEchoInput (oldInputFlag)  -- put flag back
end -- SendImmediateNoEcho