Using the Tcl Console

To use the Tcl Console in VisualApplets:

  1. From menu Window, select Dock Windows and than Tcl Console.
  1. Use the field Tcl Command to enter your Tcl commands.
  2. Strike the Return key to send your command.

In the scrollable window (Tcl Console) above, all commands you have entered are displayed, together with information if the command could be carried out, and with according error messages if not. Tcl Console lists all commands you enter for design creation (via GUI options, key strokes, or in Tcl).

Commands you entered via Tcl are marked by a preceding “>”.

Errors are highlighted in red.

  1. Use the Tcl console to get information about commands and their syntax: Just carry out the action (you want to define in your script) using the GUI options of VisualApplets (clicking, Drag&Drop, key strokes ...) and read in the scrollable Tcl Console window how this action is defined in Tcl.1 You can use Copy&Paste to copy commands into your Tcl script.
  2. Use the Tcl console to test the commands you want to enter into your script: Just enter the command in the Tcl Command field and check if the desired action is carried out by VisualApplets.2
    You can use Copy&Paste to copy a successful command into your Tcl script.

Using Tcl Console as Syntax Reference

 

The Tcl Console window lists commands you enter for design creation: Not only commands you enter in Tcl, but also commands you give by using the VisualApplets GUI options. This is very helpful when you start using Tcl for VA designs, as you can easily get information about the correct Tcl commands and the according command syntax.

For a complete listing of all VisualApplets-specific Tcl commands, refer to section Command Reference.