What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Help » develop plugin/script in vb6

Pages: (2): « First « 1 [ 2 ] Last »
develop plugin/script in vb6
Author: Message:
Compact3
New Member
*

VB/MSN freak

Posts: 13
33 / Male / –
Joined: Jun 2006
O.P. RE: RE: develop plugin/script in vb6
quote:
Originally posted by Matty
code:
function OnEvent_ChatWndReceiveMessage(pChatWnd, sOrigin, sMessage, nMessageKind){
    pChatWnd.SendMessage('i sent this message through my script');
}

Just an example, however every time someone sends a message (including you, it will send that message).


Now I have this, but it doesn't work:

code:
function OnEvent_Initialize(MessengerStart)
{
LoadPlugin_VB('BotjePlus.plusin')
}

function OnEvent_Uninitialize(MessengerExit)
{
PluginObj = null;
}

function LoadPlugin_VB(ProgId)
{
    var PluginObj = new ActiveXObject(ProgId);
    if(PluginObj)
    {
        if(PluginObj.Initialize(8, "", undefined) == true)
        Debug.Trace("The VB plugin has been initialized");
    }
}

function OnEvent_ChatWndReceiveMessage(pChatWnd, sOrigin, sMessage, nMessageKind)
{
    if (nMessageKind==1)
    {
        var strText = pluginobj.GetReaction(sMessage);
        pChatWnd.SendMessage(strText);
    }
}

What am I doing wrong?
06-26-2006 02:10 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


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