Edit

Load

The MWScript main entry point.

Automatically called:  When your script is loaded.

Use for:  To do any initialisation you need (such as loading persistent values from the database), or, if your script is to be manually invoked from the Script Editor, this is the main entry point for your script.

Return value:  ignored

Example :

on Load
    Alert("Hello World!")
end