![](/img/trans.png)
[英]Can VBScript automatically log into a website and perform actions via CreateObject(InternetExploerer)?
[英]What are all the actions the Merlin Agent can do?
誠然,這是一個谷歌的問題。 但似乎所有文檔都被刪除了,我無法在任何地方找到它們。 所以我希望有人可以向我展示一些VBScript代碼來枚舉對象或者有更強大的google-fu。
merlin代理是一種被遺棄的Windows組件,類似Alice ,旨在通過讓孩子講故事來教授編程。 它是由Bob Mc 在這個stackoverflow回答中介紹給我的(並且坦率地應該得到更多的贊成)。 無論如何,這是一個例子,假設你在Windows上,並且它被安裝到C盤(我發現幾乎所有的計算機上都有merlin):
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
現在我正在尋找的是Merlin可以采取的其他頂級行動。 我知道:
Play采用動畫名稱。 我也在尋找所有這些。 我知道:
你能幫我找一下其他的嗎?
我不確定為什么我之前沒有嘗試過Internet Archive [1],但它確實有效。 這是梅林可以做的動畫:
Acknowledge Nods head Alert Straightens and raises eyebrows Announce Raises trumpet and plays Blink Blinks eyes Confused Scratches head Congratulate Displays trophy Congratulate_2 Applauds Decline Raises hands and shakes head DoMagic1 Raises magic wand DoMagic2 Lowers wand, clouds appear DontRecognize Holds hand to ear Explain Extends arms to side GestureDown Gestures down GestureLeft Gestures to his left GestureRight Gestures to his right GestureUp Gestures up GetAttention Leans forward and knocks GetAttentionContinued Leaning forward, knocks again GetAttentionReturn Returns to neutral position Hearing_1 Ears extend (looping animation) Hearing_2 Tilts head left (looping animation) Hearing_3 Turns head left (looping animation) Hearing_4 Turns head right (looping animation) Hide Disappears under cap Idle1_1 Takes breath Idle1_2 Glances left and blinks Idle1_3 Glances right Idle1_4 Glances up to the right and blinks Idle2_1 Looks at wand and blinks Idle2_2 Holds hands and blinks Idle3_1 Yawns Idle3_2 Falls asleep (looping animation) LookDown Looks down LookDownBlink Blinks looking down LookDownReturn Returns to neutral position LookLeft Looks left LookLeftBlink Blinks looking left LookLeftReturn Returns to neutral position LookRight Looks right LookRightBlink Blinks looking right LookRightReturn Returns to neutral position LookUp Looks up LookUpBlink Blinks looking up LookUpReturn Returns to neutral position MoveDown Flies down MoveLeft Flies to his left MoveRight Flies to his right MoveUp Flies up Pleased Smiles and holds his hands together Process Stirs cauldron Processing Stirs cauldron (looping animation) Read Opens book, reads and looks up ReadContinued Reads and looks up ReadReturn Returns to neutral position Reading Reads (looping animation) RestPose Neutral position Sad Sad expression Search Looks into crystal ball Searching Looks into crystal ball (looping animation) Show Appears out of cap StartListening Puts hand to ear StopListening Puts hands over ear Suggest Displays light bulb Surprised Looks surprised Think Looks up with hand on chin Thinking Looks up with hand on chin (looping animation) Uncertain Leans forward and raises eyebrows Wave Waves Write Opens book, writes and looks up WriteContinued Writes and looks up WriteReturn Returns to neutral position Writing Writes (looping animation)
這是如何讓他們全部:
For Each strName in objCharacter.AnimationNames
Wscript.Echo strName
Next
1:(SO無法解析此鏈接) http://web.archive.org/web/20080214075638/http://www.microsoft.com/technet/scriptcenter/funzone/agent.mspx
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.