Run Script response type

Event handlers with a Run Script response type allow the use of scripts to handle the event. To define a Run Script event handler, you must specify the name of the script to run and a comma-delimited list of parameters to pass to the script. You can specify literal, property, variable, and component values as parameters.

Inside the script, you access parameters by using the GetParameter() function. GetParameter(0) returns the first parameter value; GetParameter(1) returns the second parameter value; and so on.

Scripts can also access WinStudio objects and data through the scripting API.

To indicate failure, the script returns a nonzero value. To indicate success, the script must return 0.