quote:
Originally posted by phalanxii
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.
(...)
Please tell me if I'm wrong about this, because I'm one of those many people who use that method in their scripts.
You're wrong
... They do exist in practice too... As I said, open messenger, sign in, sign back out and you can restart any script you want!
If it was like you said, then a script wouldn't continue to function either after the
OnEvent_SignOut event... Or couldn't detect
OnEvent Initialize(true) when Messenger is first started (as you aren't signed in yet), etc...
Forget about importing scripts, that doesn't matter as that is only a subset of cases which are possible (in particular you can only import a script when you are in case 3 in my list, and when the script is imported, case 4 will happen).