What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » 2 Scripting questions.

2 Scripting questions.
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: 2 Scripting questions.
Yes..

charAt is 0-based.. 0 is the first symbol, 1 is the second etc..

I'm currently working on some code for your 2nd question..

Second question:

code:

function OnEvent_ChatWndReceiveMessage(pChatWnd,mOrigin,sMessage,kMessageKind) {
    if(test == "on") {
        var cContacts = pChatWnd.Contacts;
        var e = new Enumerator(Contacts);
        for(i = 0; !e.atEnd(); e.moveNext()) {
            Contact = e.item();
            cEmail = Contact.Email;
        }
        if(cEmail != BannedEmail1 || BannedEmail2 /* and so on*/ || Messenger.MyEmail) {
            if(sMessage.charAt(0) == "~") {
                damessage = Message.substring(1,500);
                pChatWnd.SendMessage("");
                Debug.Trace("Trace it!");
            }
        } else {
            if(sMessage.charAt(0) == "~") {
                damessage = sMessage.substring(1,500);
                Messenger.MyPersonalMessage = "" + name.substring(0,25) + " says: " + damessage + "  - Your message here? put a ~ in front of it!";
                pChatWnd.SendMessage("Your auto message" );
                Debug.Trace("trace some text");
                MsgPlus.DisplayToast("It's a toast!");
            }
        }
    }
}


This should do the trick.

Btw, I have the Dutch version of your script installed ;)

Good work (Y)

EDIT:: Maybe "Your message here? put a ~ in front of it!" should be "Your message here? Type "~<message>".. This is shorter so there's more room for the contact's mesage :P

This post was edited on 05-18-2008 at 05:45 PM by SmokingCookie.
05-18-2008 05:34 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
2 Scripting questions. - by apex on 05-18-2008 at 05:08 PM
RE: 2 Scripting questions. - by SmokingCookie on 05-18-2008 at 05:25 PM
RE: 2 Scripting questions. - by apex on 05-18-2008 at 05:30 PM
RE: 2 Scripting questions. - by SmokingCookie on 05-18-2008 at 05:34 PM
RE: RE: 2 Scripting questions. - by apex on 05-18-2008 at 05:53 PM
RE: 2 Scripting questions. - by SmokingCookie on 05-18-2008 at 05:57 PM
RE: 2 Scripting questions. - by apex on 05-18-2008 at 06:05 PM
RE: 2 Scripting questions. - by SmokingCookie on 05-18-2008 at 06: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