Windows Help executes macro hot spots within a topic when the user chooses the hot spot containing the macro. The topic displays continuously while Windows Help executes the macro, unless the macro causes a jump to another topic.
Macro hot spots are formatted the same as jump hot spots—the hot spot (text or bitmap reference) is formatted as double-underlined text and the macro string (preceded by an exclamation point) is formatted as hidden text.
To create a macro hot spot in a topic
1.1.Select the macro hot-spot text.
2.2.From the Format menu, choose Character.
3.3.Select the Double Underline check box, and then choose OK.
4.4.Position the insertion point immediately after the last letter in the double-underlined macro hot-spot text.
5.5.From the Format menu, choose Character again.
6.6.Clear the Double Underline check box, select the Hidden check box, and then choose OK.
7.7.Insert an exclamation point (!) as the first character of the macro string.
Note The exclamation point must be formatted as hidden text.
8.8.Type the macro string that you want Help to execute when the user chooses this hot-spot text.
Note You do not need to include a space between the exclamation point and macro string.
9.9.From the Format menu, choose Character again, clear the Hidden check box, and then choose OK.
Figure 14.2 shows a correctly coded macro hot spot in a topic file.
For more information about how to include macro hot spots in your Help topics, see Chapter 8, “Creating Links and Hot Spots.”