Main Page   Modules   Related Pages  

[CustomCommand]

CustomCommand is a placeholder for a user defined section name. HTML Autoplay intercepts IE requests made to a custom protocol ("cmd:") and looks for a section by that name.

Pages that need to execute external actions such as viewing readme files or launching should have tags of the following format:

<a href="cmd:MyCommand">Do MyCommand</a>

For an entry of this syntax, there should be a section entitled [MyCommand] which lets HTML AutoPlay know what command should be executed. The entries under [MyCommand] are the following:

Key Format Interpretation
Command Relative path The relative path to the HTML file to display when the autoplay browser first loads. This value is required.
Params String Any command line parameters to pass to the ShellExecut'ed file specified in . If this key is empty or missing then no command line parameters will be used.
Verb String The verb to use when ShellExecuting this file. If this key is empty or missing then the default shell verb will be used.
ShowCmd One of SW_XXX values in text format The parameter to use when executing the HTML command. Valid constants are enumerated in MSDN under the ShellExecute API. If this key is empty or missing then the SW_SHOWNORMAL parameter will be passed to ShellExecuteEx.

Note:
To include an HTML link to close your HTML Autoplay dialog, include a link of the form:

<a href="cmd:ok">Ok</a>
"Cmd:ok" is the only HREF link that does not require a section in autoplay.inf. It is handled automatically by the AutoPlay application and closes the application when it is invoked.

Generated on Sun Feb 16 11:41:10 2003 for HTML Autoplay by doxygen1.3-rc2