Project

General

Profile

$timer » History » Version 8

Per Amundsen, 12/13/2019 06:28 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$timer(N|name)*
4
5
Returns the timer id of the name or Nth timer in the timers list.
6
7
*Parameters*
8
9
N|name - Name of the timer, if N = 0, number of timers, otherwise the Nth timer.
10
11
*Properties*
12
13 3 Per Amundsen
.cid - Returns [[$cid|connection id]] associated with the timer.
14
.wid - Returns [[$wid|window id]] associated with the timer.
15 1 Per Amundsen
.hwnd - Returns window handle associated with the timer.
16
.delay - Returns the timer interval.
17
.pause - Returns [[$true]] if the timer is paused, otherwise [[$false]].
18
.reps - Returns number of repetitions left.
19
.com - Returns the command the timer runs.
20
.type - Returns online or offline.
21 2 Per Amundsen
.mmt - Returns [[$true]] if the timer is a multimedia timer, otherwise [[$false]].
22
.anysc - Returns [[$true]] if the timer is set to dynamically associates itself with the active connection, otherwise [[$false]].
23 4 Per Amundsen
.time - Returns the HH:MM time to run the timer at, if specified.
24 6 Per Amundsen
.name - Returns the timers N position even if the timer name is a number.
25 7 Per Amundsen
.secs - Returns the number of seconds before the next time the timer executes.
26 8 Per Amundsen
.ms - Returns the number of milliseconds before the next time the timer executes. *(AdiIRC only)*
27 1 Per Amundsen
28
*Example*
29
30
<pre>
31
; List number of running timers.
32
//echo -ag $timer(0)
33
34
; List the first timer.
35
//echo -ag $timer(1)
36
</pre>