Windows Vista Forums

ms agent
  1. #1


    Ryan Guest

    ms agent

    PS can't load other characters other than merlin

    several .acs are installed in c:\windows\msagent\chars

    which also has merlin.acs



    the last function call always return "Merlin"

    what should be done beside putting .acs in the default location
    mentioned above

    $agent = new -com agent.control.2
    $agent.connected=1
    $agent.characters.load("peedy")
    $peedy=$agent.characters.character("peedy")
    $peedy.name

      My System SpecsSystem Spec

  2. #2


    Marco Shaw Guest

    Re: ms agent

    What OS specifically? I had problems with the ms agent voice on XP
    SP2, for example...

    Marco

    Ryan wrote:

    > PS can't load other characters other than merlin
    >
    > several .acs are installed in c:\windows\msagent\chars
    >
    > which also has merlin.acs
    >
    > the last function call always return "Merlin"
    >
    > what should be done beside putting .acs in the default location
    > mentioned above
    >
    > $agent = new -com agent.control.2
    > $agent.connected=1
    > $agent.characters.load("peedy")
    > $peedy=$agent.characters.character("peedy")
    > $peedy.name

      My System SpecsSystem Spec

  3. #3


    RichS Guest

    RE: ms agent

    Last time I looked at using other characters it was something like this
    $file = join-path $env:windir "msagent\chars\Peedy.acs"
    $agent = new -com agent.control.2
    $agent.connected=$true
    $agent.characters.load("Peedy", $file)

    $character = $agent.Characters.Item("Peedy")
    $action = $character.Show()

    Theres an example here

    http://bartdesmet.net/blogs/bart/arc...M-objects.aspx

    and on page 412 of PowerShell in Action
    --
    Richard Siddaway
    Please note that all scripts are supplied "as is" and with no warranty
    Blog: http://richardsiddaway.spaces.live.com/
    PowerShell User Group: http://www.get-psuguk.org.uk


    "Ryan" wrote:

    > PS can't load other characters other than merlin
    >
    > several .acs are installed in c:\windows\msagent\chars
    >
    > which also has merlin.acs
    >
    > the last function call always return "Merlin"
    >
    > what should be done beside putting .acs in the default location
    > mentioned above
    >
    > $agent = new -com agent.control.2
    > $agent.connected=1
    > $agent.characters.load("peedy")
    > $peedy=$agent.characters.character("peedy")
    > $peedy.name
    >

      My System SpecsSystem Spec

  4. #4


    Ryan Guest

    Re: ms agent

    Marco Shaw wrote:

    > What OS specifically? I had problems with the ms agent voice on XP
    > SP2, for example...
    >
    > Marco
    >
    > Ryan wrote:

    >> PS can't load other characters other than merlin
    >>
    >> several .acs are installed in c:\windows\msagent\chars
    >>
    >> which also has merlin.acs
    >>
    >> the last function call always return "Merlin"
    >>
    >> what should be done beside putting .acs in the default location
    >> mentioned above
    >>
    >> $agent = new -com agent.control.2
    >> $agent.connected=1
    >> $agent.characters.load("peedy")
    >> $peedy=$agent.characters.character("peedy")
    >> $peedy.name
    they can't speak on my machine too, XP sp2

      My System SpecsSystem Spec

  5. #5


    Marco Shaw [MVP] Guest

    Re: ms agent


    > they can't speak on my machine too, XP sp2
    If I remember, it does "whoosh" when moving around, but when asked to
    talk, I hear nothing. I had found an FAQ and reinstalled something, but
    still, no sound.

    I just gave up, due to other more important things.

    Marco

      My System SpecsSystem Spec

  6. #6


    Gordon Bell Guest

    Re: ms agent

    Here Ryan, try this...


    $agent = new-object -comObject "Agent.Control.2"
    $agent.Connected = $true
    [void]$agent.Characters.Load("Genie", "Genie.acs")
    $char = $agent.Characters.Character("Genie")
    [void]$char.Show()
    [void]$char.Speak("Hello World!")
    [void]$char.Hide()

      My System SpecsSystem Spec

  7. #7


    Gordon Bell Guest

    Re: ms agent


    Yes, the new graphics layering in Vista does not work properly with
    Microsoft Agent, so characters can no longer be resized.


    RichS wrote:

    > Thanks for the script - it works fine on Vista SP1. It is similar to what I
    > am using already. To add to the strangeness I have discovered that if I try
    > to set the height and width of the character to anything other than the
    > defaults it will not be visible - leaving height and width at the defaults
    > everything works fine. Very Odd.
    >
    > if it was easy they wouldn't need us

      My System SpecsSystem Spec

ms agent problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
agent.exe? Buddha Vista General 0 28 Feb 2009
JS/downloader.agent the staring frogs of Southern Iberia Vista General 3 29 Apr 2008
Trojan.Agent.AD pulse Vista security 2 02 Feb 2008
Forte's Agent cbcb52 Vista General 3 09 May 2007
Agent 4.0 from my XP to Vista RScotti Vista General 31 05 Oct 2006