Hi, Peter,
There is no need to use a RoboHelp-specific API or JavaScript
to implement context-sensitive help in your application. Microsoft
has an extensive and well-documented API with which HTML Help files
may be connected to applications, and there is therefore no need to
reach for a third-party solution.
So, you'll probably want to look at the HTML Help API
documentation here:
http://msdn.microsoft.com/en-us/library/ms670068(VS.85).aspx
Notice that there are a number of different API commands with
which you can implement context-sensitive help, but the most widely
used is probably
HH_HELP_CONTEXT.
You may also find these resources useful:
http://www.smountain.com/m_ProgrammingHelp.htm
http://frogleg.mvps.org/helptechnologies/htmlhelp/hhmfc.html
http://helpware.net/FAR/far_faq.htm#CPP
See also the following articles, which describe how the
map/alias functionality works within a .chm file:
http://www.help-info.de/en/Help_Info_HTMLHelp/hh_context-id.htm
http://frogleg.mvps.org/helptechnologies/htmlhelp/hhtutorials.html#mapping
To determine the context help mappings that are already set
up in a .chm file, see the "Context Sensitive Help" section in this
article:
http://www.grainge.org/pages/authoring/reverse_engineering/reverse_engineering.htm
Alternatively, you can use the "Test HH API" facility in FAR
to retrieve the context integers from a .chm file.
http://helpware.net/FAR/index.html
FAR is free to use for two months, but then you have to pay a
nominal fee to continue using it.
Pete