Recording a Login Macro and Running It Automatically at Startup

Recording a Login Macro and Running It Automatically at Startup

Flex Terminal Emulator allows you to automate the login process by recording a macro and configuring it to run each time a session connects to the host.


Step 1: Record a Login Macro

Follow these steps to capture your login sequence:

  1. Open the Flex Terminal Emulator workspace that contains the session you want to automate.
  2. Ensure the session is connected to the host:
    • Go to the Home ribbon tab and click Connect if needed.
  3. In the Macro tab group, click Record to begin recording.
    • Note: All keystrokes and actions are recorded until you stop recording.
  4. Log in to the host as you normally would.
  5. (Optional) Navigate to your desired application screen or menu by performing any additional steps you want included in the macro.
  6. Click Record again to stop recording.
  7. When prompted, provide a name for the macro and click Save.

Step 2: Configure the Macro to Run at Startup

Next, configure the session to automatically run the macro upon connection:

  1. Log out of the host (if applicable) and disconnect the session.
  2. On the Home ribbon tab, click Setup in the Communications group.
  3. Expand the Advanced section.
  4. Click the ellipsis (…) button next to the Start Up Action property.
  5. In the Action Properties dialog:
    • Select Macro
    • Choose the macro you recorded
    • Click OK
  6. Click OK again to close the Setup window.
  7. Select File → Save All to save your changes.

Step 3: Test the Configuration

  • Click Connect to start the session.
  • The macro should run automatically, performing the login and any additional recorded steps.

Notes

  • If the macro does not behave as expected, you can:
    • Re-record it, or
    • Manually edit the macro to correct any issues
  • Passwords entered during recording are stored as encrypted text and automatically decrypted during playback
  • To disable the startup macro:
    • Set the Start Up Action property to Nothing

Notes
Using a startup macro can significantly streamline your workflow by eliminating repetitive login steps and automatically navigating to your desired screen.


    • Related Articles

    • Assigning a Macro to a Keystroke in Flex Terminal Emulator

      Flex Terminal Emulator allows you to assign macros to specific keys, enabling you to automate repetitive tasks and streamline your workflow. How to Assign a Macro to a Key Follow these steps to assign a macro to a keystroke: Open the Flex Terminal ...
    • Exporting Host Screen Data to Excel Using a Macro

      Flex Terminal Emulator allows you to automate the extraction of data from host screens and export it directly into an Excel spreadsheet using a macro. This approach is useful for collecting structured data across multiple screens. Overview A macro ...
    • Exporting a Host Screen to Microsoft Word

      Flex Terminal Emulator allows you to export the contents of a host screen directly into a Microsoft Word document using a macro. This is useful for documentation, reporting, or sharing screen data. Overview The macro performs the following actions: ...
    • Exporting a Host Screen to an Outlook Email

      Flex Terminal Emulator allows you to export the contents of a host screen directly into a new Microsoft Outlook email using a macro. This is useful for quickly sharing or documenting screen data. Overview The macro performs the following actions: ...
    • Word Wrap in Flex Terminal Emulator Sessions

      Flex Terminal Emulator includes a Word Wrap feature that automatically moves text to the next line when it reaches the right edge of the screen. Availability Word Wrap support was introduced in version 7.0.10008.1973 and can be quickly enabled or ...