What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » MS Agent

MS Agent
Author: Message:
andrewdodd13
Senior Member
****

Avatar
Oh so retro

Posts: 870
Reputation: 16
34 / Male / Flag
Joined: Jan 2005
O.P. RE: MS Agent
Argh, I didn't even think to look at the documentation for the actual function.

Thanks :)

Edit. So that's not Microsoft's documentation nor their function. So I need to wrap the following:
code:
BOOL CMsAgentWrapper::Speak(CString szSpeakText,BOOL bBalloonEnabled,BOOL bBalloonSizeToText,BOOL bBalloonAutoPace,BOOL bBalloonAutoHide)
{
    if(m_bAgentReady == FALSE)
        return TRUE;
    szSpeakText.TrimLeft();
    szSpeakText.TrimRight();
    if(szSpeakText.IsEmpty())
        return FALSE;
    if(m_pszCurCharID == NULL)
        return FALSE;

    CAgentCtlCharacterEx Character;
    COleVariant vEmpty;
    COleVariant vText;
    CString pszText;
    UINT uBalloonFlags;

    uBalloonFlags = 0;

    Character = m_obAgent.GetCharacters().Character(m_pszCurCharID);

    if (bBalloonEnabled)
        uBalloonFlags |= BALLOON_STYLE_BALLOON_ON;

    if (bBalloonSizeToText)
        uBalloonFlags |= BALLOON_STYLE_SIZETOTEXT;

    if (bBalloonAutoPace)
        uBalloonFlags |= BALLOON_STYLE_AUTOPACE;

    if (bBalloonAutoHide)
        uBalloonFlags |= BALLOON_STYLE_AUTOHIDE;

    Character.GetBalloon().SetStyle((long)uBalloonFlags);

    if (m_bStopBeforePlay)
        Character.StopAll(vEmpty);

    vText = szSpeakText;

    Character.Speak(vText, vEmpty);
    return TRUE;
}
But, I can't seem to call Character.GetBalloon() ! :(

(I would imagine all I need to do is set a certain bit and call Character.GetBalloon().SetStyle(my bits);
But like I said, the function doesn't work.:)

This post was edited on 10-28-2008 at 11:43 PM by andrewdodd13.
[Image: AndrewsStyle.png]
10-28-2008 11:23 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
MS Agent - by andrewdodd13 on 10-28-2008 at 12:03 AM
RE: MS Agent - by ShawnZ on 10-28-2008 at 03:26 AM
RE: MS Agent - by andrewdodd13 on 10-28-2008 at 03:06 PM
RE: MS Agent - by Spunky on 10-28-2008 at 07:48 PM
RE: MS Agent - by andrewdodd13 on 10-28-2008 at 11:23 PM
RE: MS Agent - by Spunky on 10-29-2008 at 09:40 AM
RE: MS Agent - by andrewdodd13 on 10-29-2008 at 04:17 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On