Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista Tutorial - ms agent

Reply
 
Old 03-07-2008   #1 (permalink)
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
Old 03-08-2008   #2 (permalink)
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:
Quote:

> 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
Old 03-08-2008   #3 (permalink)
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:
Quote:

> 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
Old 03-08-2008   #4 (permalink)
Ryan
Guest


 
 

Re: ms agent

Marco Shaw wrote:
Quote:

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

>> 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
Old 03-09-2008   #5 (permalink)
Marco Shaw [MVP]
Guest


 
 

Re: ms agent

Quote:

> 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
Old 03-11-2008   #6 (permalink)
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
Old 03-11-2008   #7 (permalink)
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:
Quote:

> 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
Reply

Thread Tools


Similar Threads
Thread Forum
agent.exe? Vista General
JS/downloader.agent Vista General
Trojan.Agent.AD Vista security
Forte's Agent Vista General
Agent 4.0 from my XP to Vista Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46