What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [HELP] Messenger.MyPersonalMessage won't assign to variable?

[HELP] Messenger.MyPersonalMessage won't assign to variable?
Author: Message:
GNSPS
Junior Member
**

Avatar
Coding is man's best friend...

Posts: 40
32 / Male / Flag
Joined: Oct 2006
RE: [HELP] Messenger.MyPersonalMessage won't assign to variable?
You've got the variable wrong it isn't outputing anything because you're initializing it inside OnEvent_ChatWndSendMessage() function... if you put it like this it should work:

[code]
var MyOldPM;
function OnEvent_ChatWndSendMessage( ChatWnd, Message )
{
    chat_window = ChatWnd;
    Command = Message.split(' ')
switch ( Command[0].toLowerCase() )
{
           
case "/testing" :
                var i = 0;
MyOldPm = Messenger.MyPersonalMessage;
MsgPlus.AddTimer("testing", 1000 );
Message = '';
return "";
break;
   
        default:
    }
    return Message;
}

function OnEvent_Timer( TimerId )
{
    switch( TimerId )
    {
        case 'cuptime':
      i++
     if(i < 60){
      Messenger.MyPersonalMessage = "Timing... " + i + " Minutes have passed";
        MsgPlus.AddTimer( 'cuptime', 60000 );
}else{
Messenger.MyPersonalMessage = MyOldPM;
}
            break;

        default:
    }
}
[code]

EDIT: you also got the variable name wrong you've got The in one and My on another! Hope this works...

This post was edited on 08-10-2007 at 12:51 AM by GNSPS.
08-10-2007 12:50 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[HELP] Messenger.MyPersonalMessage won't assign to variable? - by Kriogenic on 08-10-2007 at 12:17 AM
RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? - by GNSPS on 08-10-2007 at 12:26 AM
RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? - by Spunky on 08-10-2007 at 12:26 AM
RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? - by Kriogenic on 08-10-2007 at 12:33 AM
RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? - by Spunky on 08-10-2007 at 12:34 AM
RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? - by GNSPS on 08-10-2007 at 12:39 AM
RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? - by matty on 08-10-2007 at 12:45 AM
RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? - by Kriogenic on 08-10-2007 at 12:45 AM
RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? - by GNSPS on 08-10-2007 at 12:50 AM
RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? - by matty on 08-10-2007 at 12:50 AM
RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? - by Spunky on 08-10-2007 at 12:52 AM
RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? - by Kriogenic on 08-10-2007 at 12:55 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