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

Ummm, WTF?
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Ummm, WTF?
quote:
Originally posted by -!Felu!-
quote:
Originally posted by alexp2_ad
No it won't... that'll work exactly the same.  :^)
Actually His would work and your wouldn't :p

 
quote:
Originally posted by alexp2_ad
code:
OnEvent_MyStatusChange(nNewStatus){
   if(nNewStatus == 5){
      oldpsm = Messenger.MyPersonalMessage;
      Messenger.MyPersonalMessage = "I'll be back in a jiffy!";
   }
else if(Messenger.MyStatus == 5){
      Messenger.MyPersonalMessage = oldpsm;
   }
}


 
 
 
quote:
Originally posted by Jay_Jay
code:
var oldpsm;
function OnEvent_MyStatusChange(nNewStatus){
   if(nNewStatus == 5){
      oldpsm = Messenger.MyPersonalMessage;
      Messenger.MyPersonalMessage = "I'll be back in a jiffy!";
   }
   else if(nNewStatus != 5 && oldpsm != null){
      Messenger.MyPersonalMessage = oldpsm;
      oldpsm = null;
   }
}

See the bold line :p.
I thought the same but I used it and it worked, even without a global variable.  I don't understand how but it works exactly the same.

Edit:
   
quote:
Originally posted by alexp2_ad
1. OK, yes I missed out the word function, but he already figured that out.

It seems to work just how it is :s

This post was edited on 09-07-2006 at 09:15 AM by markee.
[Image: markee.png]
09-07-2006 09:13 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Ummm, WTF? - by Geodesic_Dragon on 09-07-2006 at 12:12 AM
RE: Ummm, WTF? - by alexp2_ad on 09-07-2006 at 12:18 AM
RE: Ummm, WTF? - by Geodesic_Dragon on 09-07-2006 at 12:22 AM
RE: Ummm, WTF? - by NanaFreak on 09-07-2006 at 05:33 AM
RE: RE: Ummm, WTF? - by alexp2_ad on 09-07-2006 at 08:59 AM
RE: Ummm, WTF? - by NanaFreak on 09-07-2006 at 09:09 AM
RE: RE: Ummm, WTF? - by alexp2_ad on 09-07-2006 at 09:12 AM
RE: Ummm, WTF? - by markee on 09-07-2006 at 09:13 AM
RE: Ummm, WTF? - by alexp2_ad on 09-07-2006 at 09:30 AM
RE: Ummm, WTF? - by CookieRevised on 09-07-2006 at 09:38 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