这是一个谷歌问题,诚然。但似乎所有的文档已被删除,我无法在任何地方找到它们。所以我希望有人能够让我看到一些VBScript代码来枚举对象,或者有更强大的Google-fu。Merlin Agent可以做什么?
梅林代理是一个废弃的Windows组件,有点像Alice,旨在通过让孩子们讲故事,教编程。它被介绍给我in this stackoverflow answer由Bob Mc(坦率地说,值得的方式更upvotes)。在任何情况下,这里有一个例子,假设你在Windows和它的安装到C盘(我发现,梅林是在几乎所有的计算机):
agentName = "Merlin"
agentPath = "c:\windows\msagent\chars\" & agentName & ".acs"
Set agent = CreateObject("Agent.Control.2")
agent.Connected = TRUE
agent.Characters.Load agentName, agentPath
Set character = agent.Characters.Character(agentName)
character.Show
character.MoveTo 200, 400
character.Play "Surprised"
Wscript.Sleep 10000
现在我正在寻找的是梅林可以采取的其他顶级行动。我所知道的:
- 显示
- 通过MoveTo
- 隐藏
- 讲
- GestureAt
- 播放
Play会动画名称。我也在寻找所有这些。我所知道的:
- 'character.Play “读”
- ' character.Play “写”
- 'character.Play “WriteContinued”
- ' character.Play “祝贺”
- 'character.Play “欢迎”
- ' character.Play “拒绝”
- 'character.Play “解释”
- ' character.Play“GestureLef T”
- 'character.Play “GestureRight”
- ' character.Play “很高兴”
- 'character.Play “惊讶”
- ' character.Play “GetAttention”
你能莫名其妙地帮助我找到其他的东西?
你已经偶然发现了VB/VBA/VBScript中最难的部分 - 文档往往缺少位置或流畅的位置。尝试在Merlin上检查旧图书数据库。如果使用VBScript而不使用VB.net,那么任何旧版本的标题都可能会有很好的信息。 – 2009-07-12 17:31:02