application.runScript
Executes a string as Lua script.
Prototype
bOk = application.runScript ( sScript, [hModule] )
Description
The optional module handle can be set to make a script benefit from the functions and variables defined in this module.
Return values
bOk - true on success
[hModule] - optional module handle
Sample
if ( hModule ) then application.runScript ( commonAPI.getScriptEditorText ( gui.getComponent ( "console" ) ) or "", hModule ) else application.runScript ( commonAPI.getScriptEditorText ( gui.getComponent ( "console" ) ) or "" ) end
Available since ShiVa 2.0