What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How long is my word?

How long is my word?
Author: Message:
Ruwen
Junior Member
**


Posts: 18
Joined: Jul 2006
O.P. RE: How long is my word?
Hmm.. Where is my error in this:

code:
function OnEvent_Initialize(MessengerStart)
{
Debug.DebuggingWindowVisible = true;
var WSH = new ActiveXObject('WScript.Shell');

                    try {
                        WSH.RegRead(MsgPlus.ScriptRegPath + "mpmpass");
                        var Message = "Fundet";
                        Message = MsgPlus.RemoveFormatCodes(Message);
                        MsgPlus.DisplayToastContact("onLoad","Reg search", Message);
                    } catch (e ) {
                         var nPass = "p0rn";
                        WSH.RegWrite(MsgPlus.ScriptRegPath + "mpmpass",nPass);
                        var Message = "Oprettet";
                        Message = MsgPlus.RemoveFormatCodes(Message);
                        MsgPlus.DisplayToastContact("onLoad","Reg search", Message);
                    }

}

function OnEvent_Uninitialize(MessengerExit)
{
}
function OnEvent_Signin(Email)
{
    if(Email == "lennert@googus.dk") //Change for your sign-in email
    {
        var Message = "Skaberen er kommet online!";
        Message = MsgPlus.RemoveFormatCodes(Message);
        MsgPlus.DisplayToastContact("Googus", "Googus", Message);
    }
}

function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind) {

    if(MessageKind == 1)
    {
        strcontact = MsgPlus.RemoveFormatCodes(Origin);
        arrcontact = strcontact.split(" ");
        var naam = arrcontact[0];
            if(Message.substr(0,10) == '!mpm pass ') {
               
                if(Message.substr(10) == "") {
           
                }else{
                    var WSH = new ActiveXObject('WScript.Shell');

                    var nPass = Message.substr(10);
                    If(nPass == 'mpm'){
                    ChatWnd.SendMessage("Du kan ikke bruge mpm.");
                    }else{
                    WSH.RegWrite(MsgPlus.ScriptRegPath + "mpmpass",nPass);
                    ChatWnd.SendMessage("Pass ordet er blevet ændret til " + nPass + ".\nSkriv nu !" + nPass + " for at ændre personligbesked.");
                    }   
                }
            }else if(Message.substr(0,8) == '!mpm yes') {
                var WSH = new ActiveXObject('WScript.Shell');

                try {
                    var bPoint = WSH.RegRead(MsgPlus.ScriptRegPath + Origin + "point");
                } catch (e ) {
                     var bPoint = 0;
                }

                var nPoint = 20 + bPoint;
                WSH.RegWrite(MsgPlus.ScriptRegPath + Origin + "point",nPoint);
                ChatWnd.SendMessage("Okay så " + MsgPlus.RemoveFormatCodes(naam) + ".\nSå for du da bare 20 points på ranklisten...\nDu har nu " + bPoint + " points.\n\nSkriv !mpm list for at få vist top 10 listen.");
            }else if(Message.substr(0,7) == '!mpm no') {
                ChatWnd.SendMessage(MsgPlus.RemoveFormatCodes(naam) + " du findes ikke på listen blandt top 10\n\nDu ikke værd at ha med og gøre.");
            }
    }
}
07-09-2006 10:14 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
How long is my word? - by Ruwen on 07-09-2006 at 09:48 PM
RE: How long is my word? - by Silentdragon on 07-09-2006 at 09:48 PM
RE: How long is my word? - by foaly on 07-09-2006 at 09:50 PM
RE: How long is my word? - by Ruwen on 07-09-2006 at 09:56 PM
RE: How long is my word? - by foaly on 07-09-2006 at 09:57 PM
RE: How long is my word? - by Ruwen on 07-09-2006 at 09:58 PM
RE: How long is my word? - by cooldude_i06 on 07-09-2006 at 09:59 PM
RE: RE: How long is my word? - by foaly on 07-09-2006 at 10:04 PM
RE: How long is my word? - by matty on 07-09-2006 at 10:00 PM
RE: RE: How long is my word? - by cooldude_i06 on 07-09-2006 at 10:20 PM
RE: How long is my word? - by Ruwen on 07-09-2006 at 10:00 PM
RE: How long is my word? - by Ruwen on 07-09-2006 at 10:14 PM
RE: How long is my word? - by ddunk on 07-09-2006 at 10:19 PM
RE: How long is my word? - by Ruwen on 07-10-2006 at 07:00 AM
RE: How long is my word? - by -dt- on 07-10-2006 at 07:37 AM
RE: How long is my word? - by ddunk on 07-10-2006 at 07:40 AM


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