WinHelp

Activates the Windows Help application and specified Help (.HLP) file, and then displays the specified window or topic.

Syntax

WinHelp "helpFile", cmd, data

Argument Description
helpFile The name of the Help (.HLP) file to activate. If no path is specified, Dragon looks for the file in the Dragon Help folder. If the file is not found there, the normal Windows Help file search rules apply. The Help file name can be followed by the name of the Help system window in which to display the help, in the form ">WindowName".
cmd A value identifying the Help topic to display.
  1 Display the Help topic identified by the data argument.
  2 Close the Windows Help application.
  3 Display the default Help Contents topic. This topic is defined either in the Help project (.hpj) file or by a previous WinHelp command with a cmd value of 5. If there is no Contents topic, WinHelp displays the first topic in the Help file.
  4 Display Help for Windows Help.
  5 Set the topic specified in the dataargument as the Help Contents topic. Does not display the Help file.
  8 Display in a popup window the Help topic identified by the data argument.
  9 Switch to the specified Help file. Open it with the first topic if the file is not already open. (Useful if another Help file has the focus.)
  11 Display the Help Topics dialog box. The tab used most recently is displayed.
data Identifies the Help topic to open. This value must be the decimal number value of a Help context identifier assigned to a topic ID in the [MAP] section of the .hpj file. This value is required if the cmd value is 1, 5, or 8.

Example

This instruction opens Myapp.hlp in a Help window named "main" and displays the topic with the context ID 133096 (Hex 207E8).

WinHelp "C:\Program Files\Myapp\.hlp>main", 1, 133096