Hello,
I'm trying to control ms-agent from vbs. That works fine when the
script is embedded in a web page but, when I try to do that in a
stnadalone script nothing happens !
Nom = "peedy"
Set Agent = CreateObject("Agent.Control.2")
Agent.Connected = true
Agent.Characters.Load Nom, Nom+".acs"
Set Merlin = Agent.Characters(Nom)
Merlin.Show
Merlin.Play "DoMagic2"
Do While Merlin.Visible:wscript.sleep 10:loop
Agent.connected = false
Set Merlin = Nothing
Set Agent = Nothing
sub Agent_Click(ByVal CharacterID, ByVal Button, ByVal Shift, ByVal X,
ByVal Y)
Merlin.Hide
end sub
The click event is never triggered, I tried with _Command, _DblClick
ans so on.
Does anyone have an idea ?
Thanks in advance.
--
Gilles COSTA, Géomètre-expert
Selarl Gross-Allain
17, grande rue, BP 23 91311 Montlhéry cedex, France