Executing Macros when Opening a Help File

If a macro appears in the [CONFIG] section of the Help project file, Windows Help executes that macro when it first opens the Help file. If more than one macro is listed in the [CONFIG] section, Windows Help executes them in the order listed.

The following example shows two macros listed in the [CONFIG] section of a sample Help project file:

[CONFIG]
FocusWindow("index")
SetHelpOnFile("APPHELP.HLP")

These macros perform the following operations:

nFocusWindow makes a secondary window called “index” the active window.

nSetHelpOnFile replaces the standard How To Use Help file with a customized version.