Inserting Shortcut Controls

A shortcut control in Microsoft HTML Help 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.

[Menu Proxy — Headings — Online — Depth3 ]

How to Insert a Shortcut Control

  1. Open the content file.
  2. In the XML Editor, click in the topic where you want to insert the shortcut control.
  3. Select Insert > Shortcut Control.

  4. 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.
  5. Click OK. The shortcut control is added to the topic.
  6. Click Save the active file. to save your work.

Note If you are working with HTML Help and import a RoboHelp project containing Shortcut links, the linked files are placed in a special subfolder in the Content Explorer (Resources\CHMSupport).

What's Next?

If you want to change the way the shortcut control looks, you can modify the style of the shortcut control. See Editing Shortcut Controls.