VBScript InputBox and Help Files

你说的曾经没有我的故事 提交于 2019-12-08 05:28:56

问题


I am creating a script for my team at work, and I've been requested to make a help file that can be launched from the input boxes directly. I know that the InputBox function can take a help file as an argument, so I created a .chm file with all the necessary information.

In a test script, I have the following code:

sTest = InputBox("Test", "Test", , , , "Hardware_Project_Wizard_Help.chm", 1)

The input box shows up when I run the script, and the Help button is visible. However, when the help and support window opens up, it says:

"The Help for this program was created in Windows Help format, which depends on a feature that isn't included in this version of Windows. However, you can download a program that will allow you to view Help created in the Windows Help format. "

Based on all the documentation for InputBox, it seems that it is expecting a .hlp file. I would like to avoid having to re-make the help file and asking my whole team to download a program that will allow them to view it. Is there anyway to use a .chm, like the one I have created?


回答1:


After a lot of searching, I managed to find one website that mentioned the .hlp format is the only one accepted by InputBox. I'm not sure that you could consider it a reliable source, but taking dbmitch's comment into account, it seems like a .chm file cannot be used with InputBox.



来源:https://stackoverflow.com/questions/50258344/vbscript-inputbox-and-help-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!