quote:
Originally posted by Mattike
4. You have imported the script while you are signed out:
OnEvent_Initialize is called.
MessengerStart is false, so !MessengerStart is true.
The if statement in OnEvent_Initialize is executed.
OnEvent_Signin is called.
Messenger.MyEmail is undefined (you are signed out).
TUUT! Error!
quote:
Originally posted by CookieRevised
Open Messenger, before signing in, restart the script. You'll see that with your method (if(!MessengerStart)) your script will end in an error, while mine (if(Messenger.MyStatus > 0)) doesn't.
Yes, true, that theoretically the script is different if
!MessengerStart is used, but practically, there is no difference. Why? Because you can only import/restart/enable a script when a) WLM is open and
b) you are signed in. Therefore, Cookie's scenarios 2 and 5 (and Mattike's scenario 4) don't exist and there is no error.
Try it for yourself: open WLM (don't sign in) and try to import a script. For me, Messenger Plus! Live sends an error box saying:
code:
---------------------------
Messenger Plus! Live
---------------------------
You must be signed in before you can import new scripts.
---------------------------
OK
---------------------------
As for enabling when you are signed out: open WLM (don't sign in) and try to access the MPL preferences. For me, I get this error:
code:
---------------------------
Messenger Plus! Live
---------------------------
You must be signed-in to get access to your preferences.
---------------------------
OK
---------------------------
Please tell me if I'm wrong about this, because I'm one of those many people who use that method in their scripts.