I tried thhis question over in the SCRIPTS forum and never got it resolved. This might be a more appropriate location for it. I am attempting to use the Microsoft Agent in a logon script.

This is how it looks in VBScript:

Set Figure1 = Activate("Genie")
Figure1.Show
figure1.MoveTo(400,300)
set Request=figure1.speak("Welcome to the new network")
Do Until request.Status = Complete
Wscript.Sleep 100
Loop

The VBScript code work just fine. I've converted it into KIX 4.01 and it looks like this:

$AgentName="Genie"
$AgentPath = "%WinDir%\MSAgent\Chars\Genie.ACS"
$Agent = CreateObject ("Agent.Control.2")
$Agent.Connected = "1"
$=$Agent.Characters.Load($AgentName,$AgentPath)
$Char = $Agent.Characters.Character($AgentName)
$=$Char.Show()
$=$Char.MoveTo(400, 300)
$request=$Char.Speak("Hello. Thank you for logging on to the network")
while $request.status and not @error
sleep(1)
loop

This code does not work. In VBScript the value for "request.status" changes when the agent stops speaking. In the KIX code, the value for "$request.status" is 2 and never changes. Any idea how to get his to work properly in KIX?

_________________________
Mike