Making Windows HtmlHelp API call

Ken Ray kray at sonsothunder.com
Tue Oct 7 20:26:01 EDT 2003


I don't know if you can pass the HH_HELP_CONTEXT and nJumpToTopic
arguments from the command line; if you can, then Monte's suggestion
(with a couple of additional params) would work just fine. If not, you
might need to write an external or call on a VB app to do it for you.

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/ 

> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com 
> [mailto:use-revolution-admin at lists.runrev.com] On Behalf Of 
> Monte Goulding
> Sent: Tuesday, October 07, 2003 7:41 PM
> To: use-revolution at lists.runrev.com
> Subject: RE: Making Windows HtmlHelp API call
> 
> 
> 
> > Hi,
> > 
> > I am finishing an app (Windows only) which will be integrated with 
> > some
> > other applications that are not made in Revolution.  The other 
> > applications all share the same help file and ideally my 
> Revolution app 
> > will as well.  I was told that in order to do this I will 
> need to make 
> > an API call to HtmlHelp:
> > 
> > HtmlHelp( hRevAppWindowHandle, "HelpFile.chm", HH_HELP_CONTEXT,
> > nJumpToTopic );
> > 
> > hRevAppWindowHandle = handle to the main window in Rev app. 
> > "HelpFile.chm" = path to the help file. HH_HELP_CONTEXT = 
> defined as 
> > 0x000F in the htmlhelp.h file from the Microsoft Platform SDK.  The 
> > HtmlHelp function does different things depending on this 
> argument.  
> > This argument tells it to launch to a particular page 
> specified by the 
> > last argument. nJumpToTopic = This is the ID of the topic 
> you want to 
> > jump to.
> > 
> > Is this something I would have to have an external for if I 
> wanted to
> > do it in my Revolution app?
> > 
> 
> Nah... just a two liner: 
> set the hideConsoleWindows to true
> get shell("start "&quote&quote&&quote&Helpfile.chm&quote)
> 
> Cheers
> 
> Monte
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 





More information about the Use-livecode mailing list