From WikiChip
Difference between revisions of "mirc/identifiers/$ltimer"
< mirc‎ | identifiers

m
 
Line 1: Line 1:
{{mirc title|$ltimer Identifier}}'''$ltimer''' return the name of last timer created.
+
{{mirc title|$ltimer Identifier}}'''$ltimer''' returns the name (timer ID) of last timer created.
 
 
 
 
 
== Synopsis ==
 
== Synopsis ==
 
<pre>$ltimer</pre>
 
<pre>$ltimer</pre>
  
== Paramters ==
+
== Parameters ==
 
None
 
None
  
Line 12: Line 10:
  
 
== Example ==
 
== Example ==
<source lang="mIRC">//.timerNAME 1 1 echo -a $!ltimer</source>
+
<source lang="mIRC">
 +
//.timerNAME 1 1 echo -a $!ltimer
 +
//timerfoobar $+ $rand(1,99) 1 5 noop | echo -a $ltimer
 +
//timerfoo 1 3 echo -a current timer is $!ctimer last timer created is $!ltimer | timer $+ $rand(11111,99999) 1 2 echo -a current timer is $!ctimer last timer created is $!ltimer
 +
</source>
 +
 
 +
<source lang="mIRC">
 +
The 'name' can be numeric, in which case the string returned is the numeric name, and not the 'N' used in $timer(N) used to return the name of the Nth timer.
 +
//timer $+ $rand(11111,99999) 1 1 noop | echo -a $ltimer</source>
  
 
== Compatibility ==
 
== Compatibility ==
 
{{mIRC compatibility|5.1}}
 
{{mIRC compatibility|5.1}}
 
 
== See also ==
 
== See also ==
 
* {{mIRC|$ctimer}}
 
* {{mIRC|$ctimer}}
 
* {{mIRC|$timer}}
 
* {{mIRC|$timer}}
 
* {{mIRC|/timer}}
 
* {{mIRC|/timer}}
{{mIRC identifier list}}
 
[[Category:mIRC identifiers|ltimer]]
 

Latest revision as of 13:06, 4 October 2019

$ltimer returns the name (timer ID) of last timer created.

Synopsis[edit]

$ltimer

Parameters[edit]

None

Properties[edit]

None

Example[edit]

//.timerNAME 1 1 echo -a $!ltimer
//timerfoobar $+ $rand(1,99) 1 5 noop | echo -a $ltimer
//timerfoo 1 3 echo -a current timer is $!ctimer last timer created is $!ltimer | timer $+ $rand(11111,99999) 1 2 echo -a current timer is $!ctimer last timer created is $!ltimer
The 'name' can be numeric, in which case the string returned is the numeric name, and not the 'N' used in $timer(N) used to return the name of the Nth timer.
//timer $+ $rand(11111,99999) 1 1 noop | echo -a $ltimer

Compatibility[edit]

Added: mIRC v5.1
Added on: 28 Aug 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.

See also[edit]