Programming with Reflection

image\rwnprg32.gif DefineHotspotEx method

 

Syntax object.DefineHotspotEx String, Flags, Row, Column, Tip, Help, Commands

 

Description

Defines a hotspot.

Arguments

String Argument type: String
The screen text that Reflection will identify as a hotspot.

Flags Argument type: Enumeration
Specifies criteria for determining if a string should be identified as a hotspot:

 rcMatchAll

 Specifies that all screen text that matches the given hotspot string should be identified as a hotspot, regardless of whether the case matches exactly or whether the string is delimited by spaces.

 rcMatchCase

 Specifies that Reflection should consider case in determining whether screen text matches the given hotspot.

 rcMatchWhole

 Specifies that Reflection should only look for strings preceded and followed by one or more spaces in determining whether screen text matches the given hotspot.

 rcMatchCaseWhole

 Specifies that Reflection should consider both case and delimiting spaces.

Row Argument type: Integer or Enumeration
A specific row for the hotspot. The hotspot string must be in the specified row to be identified as a hotspot. Use rcAnyRow for this argument if you want the string to be identified as a hotspot anywhere it appears on screen.

Column Argument type: Integer or Enumeration
A specific column for the hotspot. The hotspot string must be in the specified column to be identified as a hotspot. Use rcAnyCol for this argument if you want the string to be identified as a hotspot anywhere it appears on screen.

Tip Argument type: String
The text of the ToolTip that appears when the mouse cursor rests on the hotspot. Use an empty string ("") if you don't want a ToolTip.

Help Argument type: String
The help text. This text appears on the status line while you depress the mouse button while it is postioned over the hotspot. Use an empty string ("") if you don't want help text. Use an empty string ("") if you don't want a help message.

Commands Argument type: String
The Reflection method, or sequence of methods, to be executed when the hotspot is clicked. Methods that return values can't be used. Use a space to separate multiple methods. Use double quotation marks around string arguments. For example, the following strings are all valid for this argument:

      "Connect"

      "TransmitAnsi ""Hello"" TransmitTerminalKey rcIBMEnterKey"

      "RunMacro ""MyMacro"", """""

 This string can be up to 260 characters long.

 

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command