On load

From Scriptwiki
Revision as of 14:50, 22 November 2005 by Doomie (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

Take a look at the On start event if you want to execute commands whenever a script is loaded.