Finding the Input and Output IDs of an Emulator

Every option (for example, File and Edit) in an emulator's menu has a unique Control ID number. Terminal Launcher uses these IDs to simulate the selection of options.

Terminal Launcher uses

To find these numbers, use Spy++, a Microsoft* utility.


Setting Up Spy++

FTP Software's PCTCP Window Telnet VT v3.1 emulator will be used for all screen shots and examples in this section.

  1. Launch the Emulator normally.


    Launching an emulator

  2. Launch Spy++.

  3. Arrange the windows so that emulator window and Spy++ window are fully visible on the screen.

  4. In the Spy++ window, click the Message Log button (the fourth button from the left).


    The Message Log button in Spy++

  5. In the Message Options dialog box, click and hold the Finder Tool, drag the target icon from its position on the Spy++ dialog box to the title bar of the emulator, and then release the mouse button.


    Dragging from Spy++ to the emulator

  6. Click Messages > Clear All.

  7. From the Messages to View list, click WMCommand, then click OK.


    Using the Messages to View list

A new, blank window appears in Spy++. Spy++ is now ready to watch for any ID numbers that are passed by the emulator.


A Spy++ window prepared to watch for ID numbers


Adding the IDs

  1. Click Edit > Select All in the emulator's menu.If the emulator does not have a Select All option, use Copy instead.


    The emulator[apos  ]s Select All option

    Note that a line of text has appeared in the Spy++ window. This line contains the ID of the Select All command. In this example, the ID is 209.


    The ID of the Select All command

  2. Click Edit > Copy, and then Edit > Paste in the emulator.

    Two more lines appear in Spy++.


    Additional lines in Spy++

    These are the Control IDs of the Copy and Paste functions. In this example, the IDs are as follows:

    Function Control ID

    Select All

    209

    Copy

    205

    Paste

    207

    Take note of the ID numbers for the emulator that you are configuring. Terminal Launcher needs them.

    If the emulator only has Copy and Paste, take note of the two ID numbers. If emulator doesn't have a Select All function, you must configure the emulator as an Advanced Generic emulator.


Using Alternatives to Control ID Numbers

In the following situations, use an alternative to Control ID numbers:

The alternatives simulate key presses or keyboard shortcuts that achieve the same outcome.

For example, if the Select All Control ID 209 and the Copy Control ID 205 don't work with Terminal Launcher, try any of the following alternatives in the Output IDs text box.


Alternative One

\Alt+E,S,\Alt+E,C

This output simulates the following:

Keys are not case-sensitive.


Alternative Two

\Ctrl+a,\Ctrl+c

This output simulates the following:


Alternative Three

\Alt+e,\|40,\|40,\N,\Alt+e,\N

This output simulates the following:

All of these alternatives might or might not work with particular emulators. They will all need customizing to suit the emulator. You can adapt the alternatives to suit any requirement (for example, selecting other menu items).

Finding a Terminal Launcher configuration, including finding alternatives to the Control IDs, requires trial and error, which becomes easier with experience.

When you use alternatives, the increased number of steps slows the Terminal Launcher process slightly.

Scenario for Using an Alternative: The Select All Control ID of 209 and the Copy Control ID of 205 don't work with Terminal Launcher. You try Alternative 1 in the Output ID's text box.


An emulator[apos  ]s Output ID text box



  Previous Page: Emulator Types  Next Page: Configuring an Emulator