Here is an example of what can be done using Vbscript and the above functions and properties used below.
this code is directed to the MSAgent folder for 'Windows Vista', if you use another operating system then you will have to change the directory string below to the correct path that your Agent files are located or this code will not function properly.
Dim AgentControl
On Error Resume Next
Set AgentControl = CreateObject("Agent.Control.1")
If IsObject(AgentControl) Then 'it loaded ok
AgentControl.Connected = True
Dim merlin
On Error Resume Next
'C:Windows\MSAgent\chars
AgentControl.Characters.Load "merlin", "C:\Windows\MSAgent\chars\merlin.acs"
set merlin = AgentControl.Characters ("merlin")
merlin.Get "state", "Showing"
merlin.Get "state", "Speaking"
merlin.MoveTo 10, 10
merlin.Show
merlin.Get "state", "Moving"
merlin.MoveTo 257, 177
merlin.Speak ("Isn't it about time you started doing some real work?")
merlin.Hide
End If
wscript.echo "What do you think?"
Jerry[8D]