Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS Agent in VFP
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00515468
Message ID:
00515575
Views:
19
This message has been marked as the solution to the initial question of the thread.
>Does anyone know how I can create instances of and control the MS agent with VFP 6
>
>thanks in advance

You can find a lot of info at

http://msdn.microsoft.com/msagent

and the full documentation is here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msagent/guidlin_7cfi.asp

Working with Agent is easy. For example, (I suppose you have MS Agent installed on your PC and you have OleAgent1 control on your form):
thisform.oleAgent1.Characters.Load("MERLIN",
"c:\windows\msagent\chars\merlin.acs")
WITH thisform.oleAgent1.Characters("MERLIN")
.MoveTo(100,50)
.SHOW()
.Play("Greet")
.Speak("Hi! I am Merlin")
ENDWITH
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform