Difference between revisions of "Startup script"

From Code::Blocks
m (wikify)
Line 1: Line 1:
 +
[[Category:Code::Blocks_Documentation]]
 +
[[Category:Scripting Code::Blocks]]
 +
 
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.
 
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.
 
The shipped ''startup.script'' just logs its presence in the application's debug log.
Line 7: Line 10:
 
  }
 
  }
  
See also: [[scripting commands]].
+
== See also ==
 
 
Back to [[Scripting_Code::Blocks|scripting index]].
 
  
[[Category:Code::Blocks_Documentation]]
+
* [[Scripting commands]]

Revision as of 19:02, 7 July 2006


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