What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » req:when someone send message to me, i will change my status automatic appear offline

req:when someone send message to me, i will change my status automatic appear offline
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: req:when someone send message to me, i will change my status automatic appear off
quote:
Originally posted by roflmao456
from looking @ the code

why is it _origin equal to your name?

shouldn't it be != instead?

because then only you (when you send a message) will appear offline when you send
Correct. Therefore, you should use "!==" (not the same value and same type) or "!=" (not the same value).
quote:
Originally posted by Napbree
No
"2" === 2 would be true. 3 '='s means it has to be identical. Which it is.
No, the first part is a string and the second is an integer. In the case of comparing names, it isn't really necessary to check if the types are equal to. Messenger.MyName would only return a non-string when you're not signed in, but I can't think of a case where _origin is a non-string. But, for the sake of avoiding the smallest glitch, it's recommend to use "===" if you're sure the types are equal, otherwise something weird happened and you better make the script don't respond on weird things. :P
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
06-23-2007 05:30 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
req:when someone send message to me, i will change my status automatic appear offline - by akyyy on 06-22-2007 at 03:10 PM
RE: req:when someone send message to me, i will change my status automatic appear offline - by joey on 06-22-2007 at 03:33 PM
RE: RE: req:when someone send message to me, i will change my status automatic appear offline - by Lux on 06-22-2007 at 03:34 PM
RE: req:when someone send message to me, i will change my status automatic appear off - by matty on 06-22-2007 at 03:45 PM
RE: req:when someone send message to me, i will change my status automatic appear offline - by Voldemort on 06-22-2007 at 03:48 PM
RE: RE: req:when someone send message to me, i will change my status automatic appear - by Phillip on 06-22-2007 at 04:01 PM
RE: req:when someone send message to me, i will change my status automatic appear offline - by Lux on 06-22-2007 at 03:56 PM
RE: req:when someone send message to me, i will change my status automatic appear offline - by joey on 06-22-2007 at 04:11 PM
RE: req:when someone send message to me, i will change my status automatic appear offline - by albert on 06-22-2007 at 05:18 PM
RE: req:when someone send message to me, i will change my status automatic appear off - by Ezra on 06-22-2007 at 06:36 PM
RE: req:when someone send message to me, i will change my status automatic appear off - by Nathan on 06-22-2007 at 06:40 PM
RE: req:when someone send message to me, i will change my status automatic appear offline - by matty on 06-22-2007 at 06:47 PM
RE: req:when someone send message to me, i will change my status automatic appear off - by Ezra on 06-22-2007 at 08:44 PM
RE: req:when someone send message to me, i will change my status automatic appear offline - by roflmao456 on 06-23-2007 at 04:11 PM
RE: req:when someone send message to me, i will change my status automatic appear off - by Matti on 06-23-2007 at 05:30 PM
RE: req:when someone send message to me, i will change my status automatic appear offline - by akyyy on 07-05-2007 at 03:02 PM
RE: req:when someone send message to me, i will change my status automatic appear offline - by toddy on 07-05-2007 at 03:06 PM
RE: req:when someone send message to me, i will change my status automatic appear offline - by akyyy on 07-05-2007 at 05:58 PM
RE: req:when someone send message to me, i will change my status automatic appear offline - by Jimbo on 07-05-2007 at 06:04 PM
RE: req:when someone send message to me, i will change my status automatic appear offline - by Screeny² on 07-05-2007 at 06:46 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