2009-07-12 5 views
4

Dies ist eine Frage google, zugegebenermaßen. Aber es scheint, dass alle Dokumente entfernt wurden und ich sie nirgends finden kann. So kann ich bin der Hoffnung, jemand entweder zeigen Sie mir einige Code VBScript Objekte aufzuzählen OR hat stärkere Google-Fu.Was sind alle Aktionen, die der Merlin Agent machen kann?

Der Merlin-Agent ist eine verlassene Windows-Komponente wie Alice, die darauf abzielt, Programmierung zu lehren, indem Kinder Geschichten erzählen lassen. Es wurde mir vorgestellt in this stackoverflow answer von Bob Mc (und ehrlich gesagt verdient viel mehr upvotes). In jedem Fall ein Beispiel, hier ist, vorausgesetzt, sie ist auf Windows und auf das Laufwerk C: installiert ist (ich habe festgestellt, dass merlin auf fast alle Computer):

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 

Nun, was ich suche ist andere Top-Level-Aktionen, die Merlin ausführen kann. Ich kenne:

  • anzeigen
  • MoveTo
  • ausblenden
  • Speak
  • GestureAt
  • Spielen

Wiedergabe einer Animation Namen gab. Ich suche auch all diese. Ich kenne:

  • 'character.Play "Read"
  • ' character.Play "Write"
  • 'character.Play "WriteContinued"
  • ' character.Play "Beglückwünschen"
  • 'character.Play "Greet"
  • ' character.Play "Decline"
  • 'character.Play "Explain"
  • ' character.Play „GestureLef t“
  • 'character.Play "GestureRight"
  • ' character.Play "Pleased"
  • 'character.Play "überrascht"
  • ' character.Play "GetAttention"

Können Sie Hilf mir, den Rest irgendwie zu finden?

+0

Sie sind über den schwierigsten Teil von VB/VBA/VBScript gestolpert - die Dokumentation neigt dazu, zu fehlen oder flüssig zu sein. Versuchen Sie, Buchdatenbanken nach alten Titeln auf Merlin zu durchsuchen. Jeder alte Titel würde wahrscheinlich immer noch gute Informationen haben, wenn er VBScript und nicht VB.net verwendet. –

Antwort

4

Ich bin mir nicht sicher, warum ich nicht zuvor das Internet Archive [1] versucht habe, aber es hat funktioniert. Hier ist die Animationen merlin tun können:

 
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)   

Hier ist, wie sie bekommen alle:

For Each strName in objCharacter.AnimationNames 
    Wscript.Echo strName 
Next 

1: (SO kann nicht analysieren diesen Link) http://web.archive.org/web/20080214075638/http://www.microsoft.com/technet/scriptcenter/funzone/agent.mspx

1

Ich weiß, es ist zu spät beantworte diese Frage.

Aber

können Sie die Bibliothek und characters herunterladen here.

finden Sie die Dokumentation here.

können Sie die Liste der unterstützten Animationen here finden.

Verwandte Themen