From WikiChip
Difference between revisions of "mirc/identifiers/$ltimer"
Maroonbells (talk | contribs) m |
Maroonbells (talk | contribs) |
||
Line 1: | Line 1: | ||
− | {{mirc title|$ltimer Identifier}}'''$ltimer''' | + | {{mirc title|$ltimer Identifier}}'''$ltimer''' returns the name (timer ID) of last timer created. |
− | |||
− | |||
== Synopsis == | == Synopsis == | ||
<pre>$ltimer</pre> | <pre>$ltimer</pre> | ||
− | == | + | == 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}} | ||
− | |||
− |
Latest revision as of 13:06, 4 October 2019
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$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.