2009-07-12 6 views
4

これは確かにGoogleの質問です。しかし、それはすべてのドキュメントが削除されていると私はどこにそれらを見つけることができないようだ。だから私は誰かが私にオブジェクトを列挙するためにいくつかのVBScriptコードを表示するか、より強力なgoogle-fuを持っていることを願っています。Merlin Agentはどのような操作を実行できますか?

メルリンエージェントは、子供たちが話をさせることで、プログラミングを教えることを目的とAliceなどを放棄したWindowsコンポーネントの一種です。それはBob Mcによって私in this stackoverflow answerに導入(と率直な方法より多くのupvotesに値する)されました。

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 

今、私が探しているものです。いずれにせよ、ここでは、Windowsにしていると、それがCドライブ(私はマーリンは、ほぼすべてのコンピュータ上にあることを見つけた)にインストールされますと仮定すると、一例ですMerlinが取ることができる他のトップレベルアクション。

プレイは、アニメーションの名前をとり再生

  • GestureAt
  • 隠す
  • を話す

    • を表示するのMoveTo
    • :私は知っています。私もそれらのすべてを探しています。 character.Play "祝福"
    • '
    • "WriteContinued" character.Play' を

      • 'character.Play
      • "読む"'
      • character.Play "書き込み":私が知っているの'character.Play "グリート"
      • ' character.Play "衰退"
      • character.Play「GestureLef 'character.Play
      • "説明"' T」
      • 'character.Play "GestureRight"
      • ' character.Play "喜んで"
      • 'character.Play "びっくり"
      • ' character.Play "GetAttention"

      することができます何とか残りを見つけるのを手助けしますか?

  • +0

    あなたはVB/VBA/VBScriptの最も難しい部分を遭遇しました。ドキュメントは場所が不足しているか、流動的である傾向があります。 Merlinの書籍のデータベースをチェックしてみてください。 VBScriptを使用し、VB.netを使用していない場合、古いタイトルにはまだ良い情報が残っている可能性があります。 –

    答えて

    4

    I [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

    1

    私はそれが後半知っていますこの質問に答えてください。

    しかし

    あなたは図書館や文字hereをダウンロードすることができます。

    hereというマニュアルがあります。

    サポートされているアニメーションのリストhereが見つかります。

    関連する問題