I want to send messages using /editbox rather than /msg (because I want to allow "on input" events to happen).
"/editbox -n My text" works fine.
Now I want to save existing unsent input and restore it afterwards using:
var %existing = $editbox(#chan)
editbox -n #chan My text
editbox #chan %existing
But this doesn't work - probably a timing issue. Or perhaps an issue with getting "on input" (which doesn't halt the input) to run after the "editbox -n" whilst this script is still running.
Anyone got any ideas? Use of a timer perhaps to reload the editbox?