Click to return to the HTML Help home page    
Related Topics     Splash     HTML Help ActiveX Control...    
Web Workshop  |  DHTML, HTML & CSS  |  HTML Help

Shortcut Command


Microsoft Corporation

Updated June 10, 1999

Purpose

Creates a shortcut to a specified action by passing Windows-based messages and parameters. For example, if a topic discusses a procedure that involves a specific dialog box, you can provide a link that a user can click in the topic to open the dialog box in the program.

This command can be used only with a compiled help (.chm) file.

Syntax

<PARAM  name="Command" value="ShortCut">

<PARAM name="Item1" value=",program name,parameters">
<PARAM name="Item2" value="message ID,wPARAM,lPARAM">
[<PARAM name="Button" value="[Text: Button text|Bitmap: Bitmap file path|Icon:Icon file path]">]
[<PARAM name="Font" value="Facename[, point size[, charset[, color[, PLAIN BOLD ITALIC UNDERLINE]]]]">]
[<PARAM name="Text" value="Text: Link text">]

Property Description
Button Specifies the button style. Optional.
Command Calls the Shortcut command.
Font Specifies the font attributes. Optional.
Item1 Specifies the file path to the executable file (.exe) for the program, and any parameters to be sent to the program. These values are delimited by a comma.

HTML Help does not support %WINDIR% or other system variables in the file path.

Item2 Specifies the message ID of a standard Windows message, a wPARAM value, and a lPARAM value. These values are delimited by a comma.
Text Specifies the link text. Optional.

Example

<OBJECT

id=shortcut
type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"
codebase="hhctrl.ocx#Version=4,72,8252,0"
width=100
height=100
>
<PARAM name="Command" value="ShortCut">
<PARAM name="Button" value="Bitmap:shortcut">
<PARAM name="Item1" value="notepad,notepad.exe,">
<PARAM name="Item2" value="273,1,1"> </OBJECT>

Comments


link to overview topic About commands
 


Back to topBack to top

Did you find this material useful? Gripes? Compliments? Suggestions for other articles? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.