Enable Scripting Support

By default, the script engine is not active for security reasons, because it offers the user the possibility to call system functions via the script language in the context of the current application user. For this reason, the script engine must first be activated. There are three options available for this purpose.

 

Enable general scripting support (default: False).

LlSetOption(hJob, LL_OPTION_SCRIPTENGINE_ENABLED, true);

 

Optionally a user-defined timeout can be set for the maximum runtime of a script (default: 10000 ms). A script with longer runtime will be aborted by the environment. With C# scripting, caution is advised here with too low a timeout, since any compile time that may occur counts towards the execution time.

LlSetOption(hJob, LL_OPTION_SCRIPTENGINE_TIMEOUTMS, 15000);

 

Optionally, the formula editor can be set so that the printout is executed directly in real time each time a key is pressed. However, since this can put a lot of load on the system, depending on the script language, the default setting is False.

LlSetOption(hJob, LL_OPTION_SCRIPTENGINE_AUTOEXECUTE, true);