On load: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
Doomie (talk | contribs)
No edit summary
(No difference)

Revision as of 12:50, 22 November 2005

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.