VBS 消息框.如何创建自定义按钮? [英] Vbs msgbox. How do I create custom buttons?
问题描述
好的,我正在尝试将一个小型 rpg 作为 vbs 中的一个小项目.我想要的是一个带有 5 个按钮的 msgbox:攻击、技能、魔法、奔跑、帮助.
我对 vbscript 的了解很少,所以你可能需要解释一下.
使用 VBScript 无法轻松做到这一点.(如果你能像 choice = MsgBox("请选择我的下一步行动", array("attack", "skills", "magic", "run", "take",帮助"))
).
但是你可以做旧的 create-an-IE-instance-with-choices-hack.您可以在 脚本专家的博客 或在 Rob van der 的网站上无德.
Ninja 当您考虑将 HTML 代码与 VBScript 混合时,您应该查看 这篇关于 HTA 的文章.如果您想摆弄 VBScript 并需要一个 GUI 使其具有交互性,我认为这正是您正在寻找的.p>
Ok, I'm trying to make a small rpg as a small project in vbs. What I'm after is a msgbox with 5 buttons: attack, skils, magic, run, help.
My knowledge of vbscript is quite minimal, so you may need to explain.
You cannot easily do that with VBScript. (Wouldn't it be nice if you could do something like choice = MsgBox("Please select my next action", array("attack", "skills", "magic", "run", "take", "help"))
).
But you can do the good old create-an-IE-instance-with-choices-hack. You can find examples and explanations on The Scripting Guys' Blog or on the site of Rob van der Woude.
Ninja edit: While you are looking at blending HTML code with VBScript, you should checkout this article about HTA's. I think this is just what you are looking for if you want to fiddle around with VBScript and need a GUI to make it interactive.
这篇关于VBS 消息框.如何创建自定义按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!