VBScript 输入框和帮助文件 [英] VBScript InputBox and Help Files

查看:14
本文介绍了VBScript 输入框和帮助文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的工作团队创建一个脚本,我被要求制作一个可以直接从输入框启动的帮助文件.我知道 InputBox 函数可以将帮助文件作为参数,因此我创建了一个包含所有必要信息的 .chm 文件.

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:

"此程序的帮助是以 Windows 帮助格式创建的,取决于此版本的 Windows 中未包含的功能.但是,您可以下载允许您查看帮助的程序以 Windows 帮助格式创建."

"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. "

根据 InputBox 的所有文档,它似乎需要一个 .hlp 文件.我想避免重新制作帮助文件并要求我的整个团队下载一个程序,以便他们查看它.有没有像我创建的那样使用 .chm 的?

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?

推荐答案

经过大量搜索,我找到了 一个网站提到 .hlp 格式是唯一一个被 InputBox 接受的网站.我不确定您是否可以将其视为可靠来源,但考虑到 dbmitch 的评论,似乎 .chm 文件不能与 InputBox 一起使用.

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.

这篇关于VBScript 输入框和帮助文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆