Home Page
   
 
Home
Features
Screen Shots
Requirements
Download
Ordering
Support
Notes
Online Help
About Me
 
Other Items
Screen Hot Spots Back

I never used a real terminal with a light pen, and Vista doesn't support that processing, but I'll take a guess that eventually led to terminal emulators responding to certain data on the screen and turning them into some kind of button or active clickable area, and someone named them Hot Spots.

These might be phrases such as PF1, PF2, etc. that I've seen in VM applications like PROFS, but these days you're more likely to find web URL's on the screen turned into a hot spot, so you click on the URL in the terminal area, and that opens a browser window for you.

Vista supports hot spots, but only through a supplied macro named hotspot.mac, which is not assigned (by default) to any key or mouse click.

So let's run through how to do that below:

Edit the Keyboard

First, I'm going to click Options/Keyboard-Edit and open the key editor, because I'm going to need some easy way to run the macro.  Let's assign it to the right mouse click, so you can see I selected the image of the mouse right button below:

Now I'll click the Macro tab, find hotspot.mac (supplied by me) and then click the wide Ctrl key to assign it.  That means that for now on, whenever I click ctrl-right-click I'll run hotspot.mac.  I don't need the default PasteJCL.

Testing Hotspots

So now let's do something that puts a URL on the screen.  I'll just type something into the ISPF editor.  Vista won't care if the text was typed by me or the mainframe:

So if I hold the mouse over the http:// line and ctrl-right-click that opens a Chrome browser window for me (my default) and goes to that URL. Works fine for me.

But... if I hold the mouse over the https:// nothing happens other than the cursor moving down. What's going on? Let's take a look at the code in the hotspot macro.

Modifying hotspot.mac

This is where you can tailor (or fix an error) in hotspot.mac to meet your own needs.  Let's click Macro/Edit and select hotspot.mac which should open a notepad window to edit that macro.  And we see this section for http:// but (oops) nothing for https://

*-------- handle url links on the screen -----------------------------

if left(text,7) = "http://"
  Key("Reset")
  ShellExecute("open",text,"","",1)
  exit
endif

So we can simply duplicate that code below the existing section, and make 2 changes such as:

if left(text,8) = "https://"
  Key("Reset")
  ShellExecute("open",text,"","",1)
  exit
endif

That ommision was most likely because I coded hotspot.mac around 1998 when very few URL's were encrypted. These days almost everything is encrypted, so instead of adding a new section, you could also just alter the existing https section to https by changing one line.

And of course you can also code your own hotspot activity as needed. Or if you need macro help just send me an email.

   
  Home | Features | Screen Samples | Download | Requirements
Ordering | Tech Support | Notes | Online Help | About Me | Other Items

Page Last Updated 06/15/2023
Contact support@tombrennansoftware.com