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

(Created page with "{{mirc title|$timer Identifier}}'''$timer''' returns informations about the specified timer. == Synopsis == <pre>$timer(name/N)</pre> == Paramters == * '''N''' - The Nth t...")
 
(Properties)
 
Line 23: Line 23:
 
* '''.hwnd''' - returns the handle of the window associated with the timer
 
* '''.hwnd''' - returns the handle of the window associated with the timer
 
* '''.pause''' - returns $true if /timer -p has been used, $false otherwise
 
* '''.pause''' - returns $true if /timer -p has been used, $false otherwise
 
+
* '''.name''' - Forces the parameter to be seen as a name instead of the Nth timer if you pass a number.
  
 
== Example ==
 
== Example ==

Latest revision as of 19:23, 7 January 2018

$timer returns informations about the specified timer.


Synopsis[edit]

$timer(name/N)

Paramters[edit]

  • N - The Nth timer, if N = 0 returns the total number of timer
  • name - the name of a timer

Properties[edit]

  • .com - returns the associated command of the timer
  • .time - return the time parameter if used
  • .reps - returns the number of repetition left
  • .delay - returns the delay parameter
  • .type - returns the online/offline status
  • .secs - returns the number of second left before the timer is triggered
  • .mmt - returns $true if the timer is a multimedia timer (timer -h), $false otherwise
  • .anysc - returns $true if the /timer -i switch was specified
  • .wid - returns the window ID value associated with the timer
  • .cid - returns the connection ID value associated with the timer
  • .hwnd - returns the handle of the window associated with the timer
  • .pause - returns $true if /timer -p has been used, $false otherwise
  • .name - Forces the parameter to be seen as a name instead of the Nth timer if you pass a number.

Example[edit]

//echo -a $timer(0)

Compatibility[edit]

Added: mIRC v4.72
Added on: 09 Jan 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]

/timer