Example

This example displays the name and the coordinates of the most recently selected hotspot. A line-continuation character (a space followed by an underscore) is used to break the long line.

Sub GetCurrentHotspotDemo ()

 With Session

  Dim currentHotspot As String

  currentHotspot = .GetCurrentHotspotEx

  MsgBox "The name of the current hotspot is " & currentHotspot & "."

  MsgBox "It is located at row " & .CurrentHotspotRow & _

     ", column " & .CurrentHotspotColumn & "."

 End With

End Sub