Scripting a HotSpot

In the Customize HotSpots window, one of the available options that can be selected is Play Script. This feature allows you to identify an existing or custom text string that displays on the screen, and associate a script with that string.

Here's an example. Suppose that critical customer information, like account balance, is located on a different host. Also, let's suppose that you developed a BlueZone script that automatically launches a new BlueZone session that retrieves the customer's account balance and displays it to the user.
Now, you can create a custom Search String that will be used to launch the script.

This procedure uses BlueZone Mainframe Display as an example.

  1. From the BlueZone menu bar, click Options Display or click the Display icon on the BlueZone toolbar.
    The Display Options dialog displays.
  2. Click the GUI tab.
  3. Verify that the Enable HotSpots check box is selected.
  4. Click Customize.
    The Customize HotSpots dialog displays.
  5. Click New.
    The Define Custom Search dialog opens.
  6. Type the string of characters that is used to create a HotSpot that is used to launch the script.
  7. Click OK.
    The new Custom Search String opens.
  8. With the new Custom Search String selected, go to the Action / 3270 Function edit box and select Play Script.
    A field displays.
  9. Type the name of the script that you want to be associated with your new Custom Search String.
  10. Click OK.
Whenever the defined string displays on the screen, it will be turned into a button or highlighted when you mouse over the string. This behavior is controlled by the options selected on the GUI tab in Display Options.

When the HotSpot is clicked, it launches the associated script defined above.