DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

WINHelpCall is not working properly why?

I have created a .chm file for help so when i tried to use WINHelpCall function of DIAdem to popup the help with required contents it is not giving proper result why?
0 Kudos
Message 1 of 2
(3,034 Views)
Hi abc421,

The WinHelpCall command in DIAdem is a wrapper for the Windows API call WinHelp(). This API call was designed for the older Windows Help format (.HLP files). You CAN use the following to display a .CHM file (but not the specific topic):

WinHelpCall "calc.chm", "WINHelpPartKey", "statistics"
WinHelpCall "calc.chm", "WINHelpIndex"

The .CHM files are designed to be used with a different Windows API function (HtmlHelp(), which DIAdem does not have a wrapper for yet). However, you can use this syntax in a DIAdem VBScript to open a .CHM file:

ExtProgram "hh.exe", "mk:@MSITStore:/path/filename.chm::/path\topicname.htm"

Here's an example that opens up the Windows Calculator helpfile directly to the "To perform a statistical calculation" topic:


ExtProgram "hh.exe", "mk:@MSITStore:calc.chm::/calc_statistics.htm"

If you have further questions please consult Microsoft's documentation for HH.EXE.




Thanks for contacting National Instruments!
David Mc.
Applications Engineering
Message 2 of 2
(3,034 Views)