Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Msagent, how do I wait till its done
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00773778
Message ID:
00774193
Vues:
17
>>Do you have that Agent installed? Do you have an error handler in force that might be masking an error?
>>
>>What code are you using?
>
>well the code is 300 lines long, so i don't know if to post it here is propper. but it is the code from MS
>sample on the web for the agent. the agent should be installed since it is working in ms word. i downloaded
>the character from the ms website (since i couldn't find it on my hd - maybe the agent is not installed after all).
>like i said, the baloon comes up and displayes the text, but no agent. the sound i can not test since on
>this computer i have no sound. it is not an error handler - just tried without my normal one. so, i am at a
>loss?!

How about this code?
LOCAL loform as Form

loForm = CREATEOBJECT("Form")
loForm.AddObject("agent", "oleControl", "Agent.Control.2")

loForm.Agent.Characters.Load("Merlin", "Merlin.acs")
loForm.Show()

loRequest = loForm.Agent.Characters("Merlin").Show()
DO WHILE INLIST(loRequest.Status, 2, 4)
	DOEVENTS
ENDdo
loRequest = loForm.Agent.Characters("Merlin").Speak("Hello")
DO WHILE INLIST(loRequest.Status, 2, 4)
	DOEVENTS
ENDdo
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform