Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / Attachmate.Reflection.Objects.Emulation.IbmHosts Library / IbmTerminal Object / ConnectMacro Property
In This Topic
    ConnectMacro Property (IbmTerminal)
    In This Topic

    Gets or sets the name of a macro that runs automatically after a connection is established.

    Note: This property is deprecated. Please use the ConnectAction Property instead.

    Syntax
    expression.ConnectMacro As String
    where expression is a variable that represents a IbmTerminal Object
    Exceptions
    ExceptionDescription
    This exception is thrown if the set parameter is longer than the maximum allowed.
    This exception is thrown when you modify a property that was secured via the Permissions Manager, or that can only be modified by an Administrator.
    Remarks
    You can use the ConnectMacroData property to specify information to be passed to this macro. The default value is "". The string can be up to 260 characters in length.

    Connect macros run after the terminal has successfully made a connection to the host. They should not include session setup information.

    You can also use the Configure Advanced Connection Settings dialog box or Reflection's event commands to run a macro after a connection is made. Using events is a more powerful, flexible strategy.

    See Also