Example

This example adds information to a file including the name, row location, and column location of each hotspot currently displayed on the screen.

Sub MakeHotspotFile ()

 With Session

 Dim currHtspt As String, count As Integer, i As Integer

 Open "C:\HOTSPOTS.TXT" For Output As 1

 count = .GetNumHotspots

 For i = 1 to count

  currHtspt = .GetHotspotsEx(i)

  Print #1, "Hotspot " & i,

  Print #1, " Name: " & currHtspt,

  Print #1, " Row: " & .CurrentHotspotRow,

  Print #1, " Column: " & .CurrentHotspotColumn

 Next i

 Close #1

 End With

End Sub