On load

From Scriptwiki
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