timer.dll 1.0                                         timer.txt


General

Timer is a LiteStep module that gives you the ability to
execute commands after a certain amount of time has elapsed.
Kind of like an egg timer, just that it moves the eggs from the
cooker itself.


Installation

Copy timer.dll to your Litestep directory and add a line like
the following to your step.rc file:

  LoadModule $LiteStepDir$timer.dll

After recycling Litestep you will have access to the timers.


Bangs

!TimerStart <name>
Starts a timer

!TimerReset <name>
Restarts the timer, same effect as !TimerKill followed by
!TimerStart thereafter

!TimerStop <name>
Kills the timer and executes the command associated with it

!TimerKill <name>
Kills the timer without executing the command


RC commands

*Timer name timeout command

Name is anything you like, as long as it doesn't contain any
spaces. Timeout is the time that the timer should wait before
it executes the command. The time is in milliseconds (1 sec =
1000 ms). Command is any valid LiteStep command, such as a bang
or a path.
Add a line like this one for each timer. There is currently a
limit of 100 timers (shouldn't be a problem).


Changes

Date         Ver  Changes
07 may 2001  1.0  First public release


To-do-list

 * Unlimited number of timers with dynamic memory allocation
 * Pretty simple module, can't think of anything else. If
   you've got any ideas, please send me a mail.


Feedback

If you have a bug report, feature request, or any kind of
feedback, feel free to email it to me at erik@alfafish.com.
For more info and other LiteStep modules and programs, check
out www.alfafish.com


Sourcecode

The sourcecode for this module is distrbuted under the GNU
Public License. If you didn't get the sourcecode with this
module, you can download it from www.alfafish.com

_______________________________________________________________
Erik Christiansson, aka Sci                   erik@alfafish.com
