Shoutbox

develop plugin/script in vb6 - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: WLM Plus! Help (/forumdisplay.php?fid=12)
+----- Thread: develop plugin/script in vb6 (/showthread.php?tid=61283)

develop plugin/script in vb6 by Compact3 on 06-25-2006 at 12:58 PM

Is there any way to develop a plugin/script with visual basic 6.0? cause that's the only language that I know.


RE: develop plugin/script in vb6 by absorbation on 06-25-2006 at 01:03 PM

Yes, scripts are just as advanced as plugins. You can make scripts call functions from dlls, however you will need to know some very basic jscript to get the calling to work when you want :). I hope this helps, I am sure you can learn the really basic jscript syantax within a few minutes.


RE: develop plugin/script in vb6 by Compact3 on 06-25-2006 at 01:06 PM

can you give me a little example of how to call my dll then? or can you give me a link where I can learn that?


RE: develop plugin/script in vb6 by absorbation on 06-25-2006 at 01:08 PM

quote:
Originally posted by Compact3
can you give me a little example of how to call my dll then? or can you give me a link where I can learn that?

http://www.msgpluslive.net/scripts/browse/index.php?act=view&id=13
Gives all the information you will ever need about scripting :).
RE: develop plugin/script in vb6 by matty on 06-25-2006 at 02:15 PM

When making the ActiveX Dll in vb you need to register it (regsvr32).

Next in Initialize you can use the following code

code:
var sDll = new ActiveXObject('ProjectName.ClassName');

That will provide you access to all the functions in the class. Now to call them you simply use
code:
sDll.function(parameters);
.
RE: RE: develop plugin/script in vb6 by Compact3 on 06-25-2006 at 02:17 PM

quote:
Originally posted by Matty
When making the ActiveX Dll in vb you need to register it (regsvr32).

Next in Initialize you can use the following code

code:
var sDll = new ActiveXObject('ProjectName.ClassName');

That will provide you access to all the functions in the class. Now to call them you simply use
code:
sDll.function(parameters);
.


thank you:D
RE: develop plugin/script in vb6 by Shadow-x on 06-25-2006 at 03:58 PM

hi can some1 tell me if plus live takes pluggins such as stuffplugin and if it does wen will the version compatible whit it come out?


RE: develop plugin/script in vb6 by CookieRevised on 06-25-2006 at 04:09 PM

quote:
Originally posted by Shadow-x
hi can some1 tell me if plus live takes pluggins such as stuffplugin and if it does wen will the version compatible whit it come out?
No...

Plugins are not supported directly anymore. However the devellopers of plugins can make wrapper-scripts which will load the plugin.

As for StuffPlug, the next version will come out when it is ready. This can be soon, this can be in 5 months... nobody knows. It also isn't going to be a plugin anymore, but a standalone application.
RE: develop plugin/script in vb6 by Compact3 on 06-26-2006 at 11:40 AM

I'm not so good at English and I'm not so good at js. So what do I do with this? (It's from the chm-file)

code:
[string] OnEvent_ChatWndReceiveMessage(
    [object] ChatWnd,
    [string] Origin,
    [string] Message,
    [enum] MessageKind
);

and

code:
[boolean] SendMessage(
    [string] Message
);

I know I need this but I don't know how to use it.
RE: develop plugin/script in vb6 by matty on 06-26-2006 at 11:53 AM

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).
RE: RE: develop plugin/script in vb6 by Compact3 on 06-26-2006 at 02:10 PM

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?