Support
10-01-2002, 03:24 PM
<HTML><HEAD><TITLE>HOWTO: Open an HTML Help File to a Specific Topic</TITLE></HEAD><BODY><h3>HOWTO: Open an HTML Help File to a Specific Topic</h3><b>Document ID: IR04009</b><hr>The information in this article applies to:<ul><li>AutoPlay Media Studio 4.0</li></ul><hr><h3>SUMMARY</h3><p>This article explains how to open an HTML Help file to a specific topic using AutoPlay Media Studio 4.0.</p><h3>DISCUSSION</h3><p>HTML Help files are now the industry standard for Windows help files. HTML Help files are compiled collections of individual HTML documents and the images and other resources that they need. These compiled HTML Help files are viewed with the Microsoft HTML Help Executable. This executable is called "hh.exe" and is usually located in the system's Windows directory (usually "C:\Windows" on Windows 9x or "C:\WINNT" on Windows NT/2000/XP). This viewer has shipped with Windows since Windows 98, Internet Explorer since version 4.0, and Microsoft Office since Office 2000 as well as many other Windows applications.</p><p>To open a .chm file to the default help topic, you can simply perform a <b>File.Open</b> action with the path and filename of the help file in the <b>File to open</b> field. However, to open a help file to a specific topic a different method must be used. In this case, you need to run hh.exe directly and pass the path to the help file along with a topic path on the command line. The help file path and the topic path need to be seperated with double colons ("::"). For example: "C:\Program Files\My Program\User's Guide.chm::/User's_Guide/Getting_Started/Chapter_1_Getting_Started.htm".</p><p>Here are the specific steps needed to open a help file to a specific topic:</p><ul><li>Create a <b>File.Execute</b> action.</li><li>In the <b>File to execute</b> field, enter "%WinDir%\hh.exe" (no quotes).</li><li>In the <b>Command line arguments</b> field, enter the path to the help file along with the internal path to the topic. For example, "%SrcDir%\User's Guide.chm::/User's_Guide/Getting_Started/Chapter_1_Getting_Started.htm". Make sure to include the quotes in the field in case there is path or filename that has spaces in it. This will force the text to be passed as one command line argument.</ul><h3>MORE INFORMATION</h3><p><ul><li>See <b>Command Reference | Actions | File | Execute</b> in the AutoPlay Media Studio help file</li><li>See <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/vsconHH1Start.asp?frame=true" target="blank">Microsoft's HTML Help Start Page</a></li></ul></p><p>KEYWORDS: HTML Help, hh.exe, File.Open, File.Execute</p><hr><FONT SIZE=1>Last reviewed: October 1, 2002<br>Copyright © 2002 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br></FONT></BODY></HTML>