A shortcut control launches a program or window in an application by passing Windows-based messages and parameters. For example, if a topic discusses a procedure that involves a specific dialog window, you can provide a link that a user can click in the topic to open the dialog in the program. Shortcut controls can make tasks easier for new users, and they can speed up complex procedures for experienced users.
Following are limitations of shortcut controls:
- A shortcut control can be used only with Microsoft HTML Help.
- The CHM file must be located on a local or network drive. The file cannot be accessed through HTTP.
- The CHM file must be displayed in the Help Viewer. A shortcut control does not work in a file that is displayed in an Internet browser window.
- Open the content file.
- In the XML Editor, click in the topic where you want to insert the shortcut control.
Select the Insert ribbon. In the Help Control section, select Shortcut Control.
The Insert Shortcut Control dialog opens.
- Enter the appropriate information in each of the fields. You may need to consult with your developer for help on completing these fields.
- File path to the executable file… Enter the path and name of the program that (EXE file) you are calling.
- Parameters to be sent… Enter any parameters you would like to send the program (e.g., the name of a file to open). Separate the parameters with commas.
- A message ID of a standard Windows message Select a standard Windows message from the drop-down menu.
- WPARAM value Enter the WPARAM value.
- LPARAM value Enter the LPARAM value.
- Click OK. The shortcut control is added to the topic.
- Click to save your work.