System Class Reference

The System JavaScript global object. Call system specific command directly. More...

Public Slots

void println (String text)
 Prints a string to Terminal (Unix) or Command Prompt (Windows). More...
 
String getenv (String environmentVariable)
 Gets the value of an environment variable or the operating system. More...
 
void processOneEvent ()
 Processes the next event in a while loop. It can not be accessed from the scriptModule. More...
 

Detailed Description

The System JavaScript global object. Call system specific command directly.

SCR_SystemInterface allows access to environment variables and printing to the command prompt or Terminal.

System.println("This text is printed in the command prompt or the Terminal");
var tempFolder = System.getenv("TEMP");

Member Function Documentation

◆ getenv

String System::getenv ( String  environmentVariable)
slot

Gets the value of an environment variable or the operating system.

Parameters
environmentVariable: The desired environment variable.
Returns
A string value corresponding to the environment variable.

◆ println

void System::println ( String  text)
slot

Prints a string to Terminal (Unix) or Command Prompt (Windows).

Parameters
text: The text to print to the console.

◆ processOneEvent

void System::processOneEvent ( )
slot

Processes the next event in a while loop. It can not be accessed from the scriptModule.