Page 1 of 1
winhlp32 - how does it work?
Posted: Fri May 14, 2004 6:26 pm
by alsup
One feature that I love is the ability to add a custom tool that is associated with a windows help file. This lets me display context help for the current word containing the cursor. How does Textpad do this? I've been trying to do this via .bat file but have not had any luck. I can't find any documentation on command line args for winhlp32.exe. Does anyone know how I can have a batch file call up a specific help topic by name in a given help file?
Posted: Sat May 15, 2004 3:56 am
by CyberSlug
You can try
KeyHH which provides this ability for most recent help files.
Ironically, the documentation about how to install and run the program is poor, so here are some tips:
1) The stetup program creates "C:\WINDOWS\KeyHH.exe" and "C:\Program Files\KeyWorks\KeyHH.its" (Setup never tells you this

)
2) To view the KeyHH documentation, drag the KeyHH.its file to the KeyHH.exe program. (The provided Start Menu shortcut does not work

)
You should see examples such as
KeyHH -MyID htmlhlp.chm::/api.htm in the help explaining how to use KeyHH.
winhlp32
Posted: Thu May 20, 2004 1:46 pm
by alsup
I found what I was looking for at:
http://www.mvps.org/serenitymacros/winprogs.html
This is what I wanted to do:
winhlp32 -k topicname helpfilename