Starting Scripts from the Tcl Console

You have various options to start a TCL script from the Tcl console:

Starting Scripts via File Drag&Drop

To start a Tcl script: 

  1. Drag the file from the Windows explorer and drop it in the Tcl Command input field.
    The Tcl source command is added automatically, and the slashes are reversed into the appropriate direction (forward):

  1. Strike the Return key to start executing the script in VisualApplets.

Starting Scripts Manually

Alternatively, you can type the Source command manually:

  1. Type the command Source into the Tcl Command input field.
  2. Leave a space and type the path to the Tcl file and the name of the Tcl file directly after the command Source.

 

Don't forget to put path + file name into double quotes if path or file name contain spaces.

 

  1. Strike the Return key to start executing the script in VisualApplets.

Copying Tcl Code into the Console

You can also simply copy Tcl code from the clipboard into the Tcl Command input field:

  1. Mark the code you want to execute in your Tcl script and copy it to the clipboard.
  2. Past the code from the clipboard into the Tcl Command input field.
  1. Strike the Return key to start executing the code in VisualApplets.