This shows you the differences between two versions of the page.
— |
hook [2006/08/01 03:45] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Synopsis:====== | ||
+ | [[hook]] <anything> | ||
+ | |||
+ | ======Description:====== | ||
+ | [[HOOK]] throws an [[on]] [[on hook|hook]] event. The [[on hook]] feature is | ||
+ | your way to create your own user-defined [[on]]s. | ||
+ | |||
+ | ======Examples:====== | ||
+ | This script will echo a line every 10 seconds: | ||
+ | on ^hook "foo" { | ||
+ | timer 10 { | ||
+ | echo This line is repeated every 10 seconds | ||
+ | hook foo | ||
+ | } | ||
+ | } | ||
+ | hook foo | ||
+ | |||
+ | ======History:====== | ||
+ | |||
+ | #$EPIC: hook.txt,v 1.2 2006/08/01 03:29:42 sthalik Exp $ | ||