quote:
Originally posted by SmokingCookie
code:
var Initialised = false;
function OnEvent_Initialize(boolMsgStart) {
if((!boolMsgStart) && (Messenger.MyStatus > 0)) {
// Whatever you want to do
Initialised = true;
}
}
function OnEvent_SigninReady(strEmail) {
if(!Initialised) { // equal to if(Initilaised == false)
OnEvent_Initialize(false);
// Whatever you want to do
}
}
I don't mean to criticise, but won't that script only work once, either at startup or when someone signs in, meaning that any subsequent signons (brother for instance) will still have the same variables, or is there some sneaky bit I'm missing?
As for meaningful variables - I have ocd, and can't do otherwise. Besides, much of my scripting is learned by looking at others scripts, and I'd love someday if that was what mines were used (along with my creation purpose) for and it actually helped people pickup some things.