$timer » History » Version 1
Per Amundsen, 08/13/2015 11:30 AM
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 | .cid - Returns [[$cid|connection id}} associated with the timer. |
||
14 | .wid - Returns [[$wid|window id}} associated with the timer. |
||
15 | .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 | .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 | |||
24 | *Example* |
||
25 | |||
26 | <pre> |
||
27 | ; List number of running timers. |
||
28 | //echo -ag $timer(0) |
||
29 | |||
30 | ; List the first timer. |
||
31 | //echo -ag $timer(1) |
||
32 | </pre> |