System Class Reference

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

Public Slots

void println (String text)
 Print a string to Terminal (Unix) or Command Prompt (Windows). More...
 
String getenv (String environmentVariable)
 Get the value of an environment variable or the operating system. More...
 
void processOneEvent ()
 

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

Get 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

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

Parameters
text- The text to print to the console.

◆ processOneEvent

void System::processOneEvent ( )
slot

for event processing in while loops. It can not be accessible from scriptModule