What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Resolved] Talking to VB.

[Resolved] Talking to VB.
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Talking to VB.
Forget about events and stuff, just as in VB6, in the scripts the events are triggered automatically. Everything is done right inside the scripts. All you need to do is make some functions to handle your text.

Read and study the scripting documentation, examples are shown there.

Also, you can find examples in the scripting database.

eg: Some basic JScript code you need:
code:
function OnEvent_SigninReady(sEmail) {
    var oMyBot = new ActiveXObject('Your.ActiveX');
}

function OnEvent_ChatWndReceiveMessage(pChatWnd, sOrigin, sMessage, nMessageKind) {
    Debug.Trace('Chat window: ' + pChatWnd);
    Debug.Trace('Contact name: ' + sOrigin);
    Debug.Trace('Message recieved: ' + sMessage);
    Debug.Trace('Message type: ' + nMessageKind);
    if (sOrigin != Messenger.MyName) {
        var ReplyMessage = oMyBot.ProcedureToHandleText(sMessage);
        pChatWnd.SendMessage(ReplyMessage);
    }
}
and in your VB6 code all you need is the procedure "ProcedureToHandleText" inside a public class module to handle the text and which will return a string to send back to the convo.

And as you can see, it is actually quite easy to replace
code:
var ReplyMessage = oMyBot.ProcedureToHandleText(sMessage);
with your text manipulating routines in JScript itself. You don't need VB6 at all. JScript isn't that hard...

This post was edited on 07-09-2006 at 10:29 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-09-2006 10:27 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Resolved] Talking to VB. - by Tails on 07-06-2006 at 03:01 PM
RE: Talking to VB. - by matty on 07-06-2006 at 03:03 PM
RE: Talking to VB. - by Tails on 07-06-2006 at 03:25 PM
RE: Talking to VB. - by matty on 07-06-2006 at 03:40 PM
RE: Talking to VB. - by Tails on 07-06-2006 at 04:02 PM
RE: RE: Talking to VB. - by mathieumg on 07-08-2006 at 05:00 AM
RE: Talking to VB. - by Tails on 07-08-2006 at 11:49 AM
RE: Talking to VB. - by CookieRevised on 07-08-2006 at 11:54 AM
RE: Talking to VB. - by Tails on 07-08-2006 at 12:30 PM
RE: Talking to VB. - by CookieRevised on 07-08-2006 at 01:06 PM
RE: Talking to VB. - by Tails on 07-09-2006 at 04:24 AM
RE: Talking to VB. - by CookieRevised on 07-09-2006 at 10:27 AM
RE: Talking to VB. - by Griffo on 07-09-2006 at 11:04 AM
RE: Talking to VB. - by CookieRevised on 07-09-2006 at 11:11 AM
RE: Talking to VB. - by matty on 07-09-2006 at 02:27 PM
RE: Talking to VB. - by Griffo on 07-09-2006 at 03:56 PM
RE: Talking to VB. - by matty on 07-09-2006 at 04:19 PM
RE: Talking to VB. - by Griffo on 07-09-2006 at 08:32 PM
RE: Talking to VB. - by Tails on 07-09-2006 at 10:54 PM
RE: [Resolved] Talking to VB. - by cooldude_i06 on 07-09-2006 at 11:30 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