Programming for scripts

You can add JavaScript or C code to your TruClient 2.0 script, use API functions, and create new functions.

The following options are included to help you program your script.

Option Description
Custom functions

Create functions (reusable group of steps) to perform a task, and use the functions locally, or share them for use in other scripts.

For details, see Work with function libraries.

Custom JavaScript code

Add and edit the JavaScript expressions and variables in your script.

For details, see Work with JavaScript.

Custom C code

Add steps containing custom C code and functions, to be called during replay.

For details, see Work with C functions.

TruClient API

Add JavaScript functions from the TruClient 2.0 API to your scripts. The API supports asynchronous communication.

For details, see TruClient 2.0 - Web functions.

Back to top

See also: