In This Topic
Hotspots are virtual buttons that appear over text in terminal sessions. By using hotspots, you can control your terminal session with the mouse instead of the keyboard. Typically, clicking a hotspot transmits a terminal key or command to the host, but you can also configure hotspots to open a Web page, launch a macro, or perform a variety of other actions.
Hotspots are defined in configuration files that are distributed with InfoConnect. You can create a new custom hotspot file on the fly. You can also load hotspot files when certain screens load or specific commands are entered.
Add a Hotspot
Load a Hotspots File for a Specific Screen or Command
Add a Hotspot
This sample creates a new hotspot by copying and modifying the default hotspot file.
To add a hotspot
-
Open the InfoConnect workspace and create a demo session as follows:
If you are using IBM, create an IBM3270 session with a host name of "demo:ibm3270.sim" and save the session as demoSession.rd3x in the default folder (...\myDocuments\Micro Focus\InfoConnect.)
If you are using Open Systems, create a VT session with a host name of "demo:UNIX" and save the session as demoSession.rdox in the default folder.
- In Visual Studio, create a new Console Application project and add references for the following InfoConnect assemblies. (Depending on your version of Visual Studio, these can be found either on the .NET tab or under Assemblies | Extensions.)
Attachmate.Reflection
Attachmate.Reflection.Framework
Attachmate.Reflection.Emulation.IbmHosts (if you're using IBM)
Attachmate.Reflection.Emulation.OpenSystems (if you're using UNIX or OpenVMS)
- Replace all the code in the Program.cs file with the following code for the terminal you are using.
To test this project
- Press F5 to run the sample
- When the session opens, enter any credentials to log on to the demo.
- Enter the command to navigate to the data:
For an Open System project, enter the "demodata" command.
For an IBM project, enter the "kayak" command.
- Verify that the screen has the hotspot:
For an Open Systems project, double-click the XYZ text and verify that an email is created.
For an IBM project, double-click the KAYAK text and verify that an email is created.
Load a Hotspots File for a Specific Screen or Command
This sample shows how to load a hotspots file when a certain screen is ready or when a specific command is entered.
To load a hostspots file
-
Open the InfoConnect workspace and create a demo session as follows:
If you are using IBM, create an IBM3270 session with a host name of "demo:ibm3270.sim" and save the session as demoSession.rd3x in the default folder (...\myDocuments\Micro Focus\InfoConnect.)
If you are using Open Systems, create a VT session with a host name of "demo:UNIX" and save the session as demoSession.rdox in the default folder.
- In Visual Studio, create a new Console Application project and add references for the following InfoConnect assemblies. (Depending on your version of Visual Studio, these can be found either on the .NET tab or under Assemblies | Extensions.)
Attachmate.Reflection
Attachmate.Reflection.Framework
Attachmate.Reflection.Emulation.IbmHosts (if you're using IBM)
Attachmate.Reflection.Emulation.OpenSystems (if you're using UNIX or OpenVMS)
- Replace all the code in the Program.cs file with the following code for the terminal you are using.
To test this project
- Press F5 to run the sample
- When the session opens, enter any credentials to log on to the demo.
- Open the InfoConnect Document Settings window and select Manage HotSpots.
- In the Manage Hotspots dialog box, verify that the currently selected hotspot file is the default hotspots file.
- Enter one of the following commands to navigate to the data:
For an Open System project, enter the "demodata" command.
For an IBM project, enter the "kayak" command.
- Open the Manage Hotspots dialog box and verify that the currently selected hotspot file is the myHotspots.xhs file.