Startup script

From Code::Blocks
Revision as of 09:42, 3 July 2006 by Mandrav (talk | contribs) (Initial)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Startup

When Code::Blocks finishes loading, it tries to load a script named startup.script. If it is found it then tries to execute the "function main()" inside it (if there). The user can edit this script to run arbitrary customization commands on application startup. The shipped startup.script just logs its presence in the application's debug log.

function main()
{
    Log(_T("Running startup script"));
}

See also: scripting commands.