application.runScript

Executes a string as Lua script.

Prototype

  1. 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

  1. if ( hModule ) then
  2. application.runScript ( commonAPI.getScriptEditorText ( gui.getComponent ( "console" ) ) or "", hModule )
  3. else
  4. application.runScript ( commonAPI.getScriptEditorText ( gui.getComponent ( "console" ) ) or "" )
  5. end

Available since ShiVa 2.0