| View previous topic :: View next topic |
| Author |
Message |
Titan
Joined: 11 Aug 2004 Posts: 5009 Location: imaginationland
|
Posted: Sat Sep 11, 2004 12:32 am Post subject: Microsoft HTML Help Workshop |
|
|
Hi people,
I am trying to make a Help file for my script but I am having some difficulties...
Firstly, I'm making a .chm file (like AHK's help file). When I make my Project, I pull my source from external .htm files. When I complile my help file, it needs the external .htm files in the same directory, I don't want this; AHK's Help file hasn't got the .htm's in the same folder. Can I make my compiled script include the .htm files in the actual .chm? It's all quite confusing , prehaps Chris would know  _________________
RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10465
|
Posted: Sat Sep 11, 2004 2:31 am Post subject: |
|
|
| I checked the options and I don't see anything related to external HTML files. I think when you compile the file, they're all drawn into the CHM automatically, so it should become a stand-alone file. |
|
| Back to top |
|
 |
jack
Joined: 04 Sep 2004 Posts: 74 Location: UK
|
Posted: Sat Sep 11, 2004 6:50 am Post subject: |
|
|
you need to edit the .hhc file to define the location of each .htm file.
jack |
|
| Back to top |
|
 |
jack
Joined: 04 Sep 2004 Posts: 74 Location: UK
|
Posted: Sat Sep 11, 2004 6:51 am Post subject: |
|
|
| Quote: | | you need to edit the .hhc file to define the location of each .htm file. |
sorry, fingers got the better of me. i meant, you need to edit the .hhp file. |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5009 Location: imaginationland
|
Posted: Sat Sep 11, 2004 9:02 pm Post subject: |
|
|
That's my problem though... the compiled file still uses the .htm's from it's external source!!! _________________
RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
beardboy
Joined: 02 Mar 2004 Posts: 444 Location: SLC, Utah
|
Posted: Sat Sep 11, 2004 9:26 pm Post subject: |
|
|
What version of Microsoft HTML Help Workshop are you using?
thanks,
beardboy |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5009 Location: imaginationland
|
Posted: Sat Sep 11, 2004 9:52 pm Post subject: Version... |
|
|
I have Windows XP Home (SP2) and I downloaded the lastest official HTML Help Workshop from the Microsoft webite version 4.47.8702.0. _________________
RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
beardboy
Joined: 02 Mar 2004 Posts: 444 Location: SLC, Utah
|
Posted: Sat Sep 11, 2004 10:06 pm Post subject: |
|
|
I just wanted to make sure you were using a current version. It's been a while since I built my own CHM file, and I don't ever remember having to specify to include the files within the file. You might want to try decompressing the AHK help file into a temporary folder and looking at how it is setup compared to yours.
thanks,
beardboy |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10465
|
Posted: Sat Sep 11, 2004 10:40 pm Post subject: |
|
|
Maybe this will help:
The .hhc file is for the table of contents, but it just contains some HTML. Sample:
| Code: | <LI> <OBJECT type="text/sitemap">
<param name="Name" value="AutoHotkey">
<param name="Local" value="docs/AutoHotkey.htm">
</OBJECT>
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="Tutorial (quick start)">
<param name="Local" value="docs/TutorialHelp.htm">
</OBJECT> |
The .hhp file is the global settings. It is plain text. Here is the entire file that I use: | Quote: | [OPTIONS]
Binary Index=No
Compatibility=1.1 or later
Compiled file=AutoHotkey.chm
Contents file=Table of Contents.hhc
Default Window=Help Window
Default topic=docs\AutoHotkey.htm
Display compile progress=Yes
Enhanced decompilation=Yes
Error log file=c:\A-Source\AutoHotkey\Help File\Log (compile).txt
Full-text search=Yes
Index file=Index.hhk
Language=0x409 English (United States)
Title=AutoHotkey Help File
[WINDOWS]
Help Window="AutoHotkey Help","Table of Contents.hhc","Index.hhk","docs/AutoHotkey.htm",,,,,,0x63520,,0x10280e,[0,0,639,479],,,,,,,0
[INFOTYPES] |
|
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5009 Location: imaginationland
|
Posted: Sat Sep 11, 2004 11:27 pm Post subject: |
|
|
I didn't make a table of contents yet or an index lol.
Basically, when I compile my .chm file and open it, it looks and works fine. When I move the .chm to another folder (without it's source .htm's) it still works fine. BUT when I delete the source htm's (wherever the compiled .chm is) it doesn't work, it gives the "The page cannot be displayed" error.
With this problem, am I able to distribute the help file (without it's source files)? Would it work for other users? _________________
RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10465
|
Posted: Sun Sep 12, 2004 1:21 am Post subject: |
|
|
| Maybe it's necessary to have a Table of Contents to get it to work? Also, when you compile, be sure to check the log file to find out which files it is including. If it doesn't say it's including anything, that's a pretty good sign that it won't work for others. |
|
| Back to top |
|
 |
jack
Joined: 04 Sep 2004 Posts: 74 Location: UK
|
Posted: Sun Sep 12, 2004 8:09 am Post subject: |
|
|
i've made one that works ok. the .hhp and .hhc are below. i can send the whole project if you tell me where to send it.
jack
Project (.HHP):
[OPTIONS]
Compatibility=1.1 or later
Compiled file=fred.chm
Contents file=Table of Contents.hhc
Default topic=defaulttopic.htm
Display compile progress=No
Index file=Index.hhk
Language=0x809 English (United Kingdom)
Title=test project
[INFOTYPES]
Contents (.HHC):
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft® HTML Help Workshop 4.1">
<!-- Sitemap 1.0 -->
</HEAD><BODY>
<UL>
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="chapter">
</OBJECT>
<UL>
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="default">
<param name="Local" value="defaulttopic.htm">
</OBJECT>
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="subfolder topic">
<param name="Local" value="subfolder\subdoc.htm">
</OBJECT>
</UL>
</UL>
</BODY></HTML> |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5009 Location: imaginationland
|
Posted: Sun Sep 12, 2004 1:47 pm Post subject: |
|
|
Thanks alot guys, the problem was there beacuse I didn't make a content thing. It's working now thanks! _________________
RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
|