Making AddTimer send to output?

Posted by Hawkes on Sat 28 Jul 2007 12:57 AM — 3 posts, 15,095 views.

#0
Is it possible to change this script so that it writes to output instead of the world?

AddTimer ("any_timer", 0, 20, 0, "crazy message to output here", timer_flag.Enabled + timer_flag.OneShot + timer_flag.Replace, "")

Thanks in advance!
Australia Forum Administrator #1
See:

http://www.gammon.com.au/scripts/doc.php?function=DoAfterNote
Australia Forum Administrator #2
If you want more control, see this post:

http://mushclient.com/forum/?id=7123

You could do something like this:


require "addxml"

addxml.timer {  hour = 0, minute = 0, second = 5,
                enabled = true,
                one_shot = true,
                send = "crazy message to output here",
                send_to = 2,  -- send to output window
              }