Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS Agent (AGAIN!!)

Status
Not open for further replies.

thetambarineman

Technical User
Feb 29, 2000
63
0
0
GB
Hello Again,

I've asked this question before.. i got a reply (thanks) but it wasnt the one that i wanted..
the thing is that i'm developing an application with MS Agent, i.e. Clippit and the gang - the thing is that i don't know how to put the command buttons and txt boxes into
the characters speech ballons.. This has annoyed me for ages and any help is much appreciated..!!

Paul.. [sig][/sig]
 
Dim CharPath As String
CharPath = "c:\windows\msagent\chars\Merlin.acs"
CtlAgent.Characters.Load "Merlin", CharPath
Set Merlin = CtlAgent.Characters("Merlin")
Merlin.Show
'WHEN YOU EXECUTE THE .Speak command merlin or whom ever
'should say the text and display it in a balloon.
Merlin.Speak "Hello!" [sig][/sig]
 

There is no published way that I know of to include
a TextBox or any other control in the same window used
by the agent character speech balloon. If the balloon is
a window you might be able to use the API to get the handle and paint controls to it. But that's a host of problems.

Aside from that, I think you will have to open a separate
window with the controls you need, and place the agent on
it or near it to make it look like they go together.
That's what I do in my Agent enabled apps, it works great
and looks cool!

Also isn't Clippit a MS-Assistant, and not an Agent? Maybe
what you need is access to the MS-Assistant dll's etc...
Search on download.com for buttons that mimick the office
assistant buttons, someone had a free activex control out
there that I have, that looks exactly like that. If you
can't find it let me know, and I will send it to you.

Good Luck!
billredd@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top