$ctimer

From Scriptwiki
Revision as of 13:30, 2 December 2005 by Doomie (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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. The second line makes a new timer called foobar, that will execute our just made alias testctimer 2 times with 1 second delay between.