$timer » History » Revision 8
Revision 7 (Per Amundsen, 12/19/2018 08:48 PM) → Revision 8/10 (Per Amundsen, 12/13/2019 06:28 PM)
_Added in 1.9.0_ *$timer(N|name)* Returns the timer id of the name or Nth timer in the timers list. *Parameters* N|name - Name of the timer, if N = 0, number of timers, otherwise the Nth timer. *Properties* .cid - Returns [[$cid|connection id]] associated with the timer. .wid - Returns [[$wid|window id]] associated with the timer. .hwnd - Returns window handle associated with the timer. .delay - Returns the timer interval. .pause - Returns [[$true]] if the timer is paused, otherwise [[$false]]. .reps - Returns number of repetitions left. .com - Returns the command the timer runs. .type - Returns online or offline. .mmt - Returns [[$true]] if the timer is a multimedia timer, otherwise [[$false]]. .anysc - Returns [[$true]] if the timer is set to dynamically associates itself with the active connection, otherwise [[$false]]. .time - Returns the HH:MM time to run the timer at, if specified. .name - Returns the timers N position even if the timer name is a number. .secs - Returns the number of seconds before the next time the timer executes. .ms - Returns the number of milliseconds before the next time the timer executes. *(AdiIRC only)* (AdiIRC only) *Example* <pre> ; List number of running timers. //echo -ag $timer(0) ; List the first timer. //echo -ag $timer(1) </pre>