$ctimer

From Scriptwiki
Revision as of 15:28, 27 November 2005 by Doomie (talk | contribs) (test TIMER)

Jump to: navigation, search

Returns name of timer that triggered the current script.

$ctimer

Example

alias testctimer { echo -a $ $+ ctimer }
timerfoobar 2 1 { testctimer }

In the first line of this example, we make a new alias called testctimer. The only task of this alias is to echo $ctimer to the active window. We can't use $ctimer but have to use $ $+ ctimer because mIRC would evaluate $ctimer to $null and the alias would be echo -a only, which we don't want. The second line makes a new timer called foobar, that will execute our just made alias testctimer 2 times with 1 second delay between.