On load

From Scriptwiki
Revision as of 09:51, 2 July 2007 by Cail (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The on LOAD event triggers the first time a script file is ever loaded.

on <level>:LOAD:<commands>

You can use this event to execute commands that help to use a certain script or just echo the author and function and a little introduction.

Example

on *:LOAD: {
 echo -a This is a little test script
}

This would echo This is a little test script to the active window when the script is loaded the first time.

See Also