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

(Created $ctimer identifier - mIRC)
 
m
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The '''$ctimer''' identifier returns the name of the [[/timer command - mIRC|/timer]], if any, that triggered a certain script.
+
{{mirc title|$ctimer Identifier}}The '''$ctimer''' identifier returns the name of the {{mIRC|/timer}}, if any, that triggered a certain script.
 +
 
  
 
== Synopsis ==
 
== Synopsis ==
Line 16: Line 17:
 
<pre>The timer name was: mytimer</pre>
 
<pre>The timer name was: mytimer</pre>
  
'''Note:''' The original timer capitalizations are not preserved. This is by design.
+
'''Note:''' The value is always lowercase.
  
 
== Compatibility ==
 
== Compatibility ==
Added: mIRC v5.82
+
{{mIRC compatibility|5.82}}
 
 
Added On: 14/12/2000
 
  
 
== See Also ==
 
== See Also ==
* [[$timer identifier - mIRC|$timer]]
+
* {{mIRC|$timer}}
* [[/timer command - mIRC|/timer]]
+
* {{mIRC|$ltimer}}
 +
* {{mIRC|/timer}}
 +
{{mIRC identifier list}}
  
[[Category:mIRC identifiers]]
+
[[Category:mIRC identifiers|ctimer]]

Latest revision as of 01:33, 13 November 2017

The $ctimer identifier returns the name of the /timer, if any, that triggered a certain script.


Synopsis[edit]

$ctimer

Parameters[edit]

None

Example[edit]

Create an alias that fires off a timer to perform a command, and have the command echo the name of the timer that executed it:

; Use /testCtimer
alias testCtimer { .timermyTimer 1 1 testCtimerGO }
alias -l testCtimerGO { echo -a The timer name was: $ctimer }

Result

The timer name was: mytimer

Note: The value is always lowercase.

Compatibility[edit]

Added: mIRC v5.82
Added on: 14 Dec 2000
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]

[Expand]
v · d · e mIRC identifier list