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