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)
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
 
* '''.type''' - returns the online/offline status
 
* '''.type''' - returns the online/offline status
 
* '''.secs''' - returns the number of second left before the timer is triggered
 
* '''.secs''' - returns the number of second left before the timer is triggered
 +
* '''.ms''' - returns the number of millisecond left before the timer is triggered (even for non millisecond timer)
 
* '''.mmt''' - returns $true if the timer is a multimedia timer (timer -h), $false otherwise
 
* '''.mmt''' - returns $true if the timer is a multimedia timer (timer -h), $false otherwise
 
* '''.anysc''' - returns $true if the /timer -i switch was specified
 
* '''.anysc''' - returns $true if the /timer -i switch was specified
Line 23: Line 24:
 
* '''.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 23:42, 16 August 2022

$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
  • .ms - returns the number of millisecond left before the timer is triggered (even for non millisecond timer)
  • .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