JScript examples

Automation Workshop includes Execute script Action which, besides supporting other scripting formats, can execute JScript scripts automatically. The basic JScript examples provided below are aimed at giving the user a rather general idea how to supplement intuitive automation with custom scripts when necessary.

The data communication with other scripts is based on screen output. The screen output of the script can be retrieved by using Variable Wizard from subsequent Execute script Action. It is possible to retrieve either full screen output or any of the first six output lines separately.

JScript example #1
  • var text;
    text="Hello world!";
    WScript.Echo(text);
JScript example #2
  • var text;
    text="Hello world!";

    function RemoveLastChars(str,count){
       return str.substring(0,str.length-count);
    }

    text=RemoveLastChars(text,7); // Hello
    WScript.Echo(text);

If you have any questions, please do not hesitate to contact our support team.

© 2001–2019 Febooti Ltd.