3.6.3 CASL Macro Tab

Using this tab, you can specify the name of the CASL macro to run automatically when you open this session.In addition, if you use any CASL macros that include the description, userid, password, or netid variables, you can specify the values for those variables for this session. For information about these variables, refer to the CASL Script Language Guide.

CASL Macro Options

Description

File Name

Type the name of the macro to run automatically each time you open this session.

If desired, click Browse and select the desired macro from a list of available macros.

Run Macro Before Establishing Connection

Select this option to run the macro before a connection with the host is established.

If you clear this option, Accessory Manager will not run the macro until after a host connection is established.

Run This Macro When Reconnecting

Select this option to run the macro when reconnecting to the host.

Arguments

Type any arguments that you want to pass to the session start-up macro. This provides a mechanism for adding variables to your macro.

For example, if your macro contains the variable arg(1), any text that you type here will represent that variable in the session start-up macro. Be sure to enclose each argument in double quotation marks ("). If you include multiple arguments, be sure to separate the arguments with a space.

Description

If you run any CASL macros that use the description variable, type the value to use for this variable for this session.

User ID

If you run any CASL macros that use the userid variable, type the value to use for this variable for this session.

Password

If you run any CASL macros that use the password variable, type the value to use for this variable for this session.

Network ID

If you run any CASL macros that use the netid variable, type the value to use for this variable for this session.

To specify a session startup macro

  1. If a session is not already open, open one.

  2. From the Options menu, click Session Preferences.

  3. Click the CASL Macro tab.

  4. In the File name text box, type the name of the CASL macro to run automatically each time you open this session.

    If desired, click Browse and select the desired macro from a list of available macros.

  5. To run the macro before a connection with the host is established, select Run macro before establishing connection.

    If you clear this option, Accessory Manager will not run the macro until after a host connection is established.

  6. If you want to pass any arguments to the session start-up macro, type the arguments in the Arguments text box.

    For example, if the macro contains the variable arg(1), any text that you type here will represent that variable in the session start-up macro. Be sure to enclose each argument in double quotation marks ("). If you include multiple arguments, be sure to separate the arguments with a space.

To specify the values for CASL macro variables

  1. If a session is not already open, open one.

  2. From the Options menu, click Session Preferences.

  3. Click the CASL Macro tab.

  4. Type the desired values for the following CASL variables:

    For this CASL variable

    Type the value at

    description

    Description

    userid

    User ID

    password

    Password

    netid

    Network ID