Difference between revisions of "On load"

From Scriptwiki
Jump to: navigation, search
 
m
 
Line 11: Line 11:
  
 
== See Also ==
 
== See Also ==
Take a look at the [[On_start|On start event]] if you want to execute commands whenever a script is loaded.
+
* [[On_start|On start event]] if you want to execute commands when mirc is started.
  
 
[[Category:Events]]
 
[[Category:Events]]

Latest revision as of 09:51, 2 July 2007

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