Share via


Script Designer Window

Windows Media Encoder SDK banner art

When you create a new script or double-click the internal icon of a script file in the project tree, a window similar to the following figure is displayed.

Script Designer window

The window is divided into three panes:

  • Source

    Source code for routines. Edit the code in this pane.

  • Routines

    List of routines in the source code.

    To update the list and check the syntax of all routines, click the Refresh button. If there is a syntax error, the list is cleared. Use the Message Window to see syntax errors as well as run-time errors and the output of Trace statements.

    To run routines, select them and press CTRL+R; or click Call Routine(s) on the shortcut menu; or double-click a routine name. Multiple routines are called in the order in which they appear in the list. If a routine plays any content, you can click the Stop button in the Transport Controls to stop playback.

  • Variables

    Variables declared in the script. The list is automatically updated when you click an element of the window outside the Routines pane. To set the value of a variable for testing routines, click on the variable under the Value column; or select the variable name and press CTRL+E or click Set Variable on the shortcut menu. To reset variables to an uninitialized state, click the Reinitialize button.