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

problem changing nick
Author: Message:
bran
New Member
*


Posts: 2
34 / Male / –
Joined: Aug 2006
O.P. problem changing nick
Hi,

I wrote my own script to change the nick every second so that the nick scrolls from the left to the right with dots left and right of it (like "ping-pong" with the nick).

However, after some time I get an error message "Your display name could not be changed." (translated from german), although the nick is changed.

Has the Messenger something like a filter for nickname-changing so that it cannot be changed every second?

If I have an error in the code, here it is:

code:
var curPos = 0;
var text = "bran";
var fullsize = 10;
var spacer = ".";
var inc;


// Run "Ping-Pong"
function OnEvent_Initialize(MessengerStart) {
    MsgPlus.AddTimer("pingpong", 1000);
}

function OnEvent_Timer(timerID) {
    if(timerID == "pingpong") {
        // building the string
        var str = "";
        for(var i = 0; i < pos; i++) {
            str += spacer;
        }
        str += text;
        for(var i = pos + text.length; i < fullsize; i++) {
            str += spacer;
        }
       
        // when at the end, turn and "go back"   
        if(curPos == fullsize-1 && inc == 1)
            inc = -1;
           
        // turn forward again
        if(curPos == 0 && inc == -1)
            inc = 1;
       
        // increment/decrement curPos
        curPos += inc;
       
        // set new Nick
        Messenger.MyName = str;
           
        // keep the loop running
        MsgPlus.AddTimer("pingpong", 1000);
    }
}


Please help me!
08-29-2006 08:29 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
problem changing nick - by bran on 08-29-2006 at 08:29 PM
RE: problem changing nick - by boston on 08-29-2006 at 08:37 PM
RE: problem changing nick - by Chris4 on 08-29-2006 at 08:39 PM
RE: problem changing nick - by bran on 08-29-2006 at 08:54 PM
RE: problem changing nick - by Deco on 08-29-2006 at 09:01 PM
RE: problem changing nick - by DarkMe on 08-29-2006 at 09:03 PM
RE: problem changing nick - by J-Thread on 08-30-2006 at 09:07 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