quote:
Originally posted by foaly
why not use the OnEvent_Signin() and just check if it is the first time the script is used (so imported..) with a reg code or something... and activate it manually only that time?
not the most beautiful solution... but it will work...
because OnEvent_Signin is not triggered if you activate it when you are already signed in.
you need to use both events and make them both call a startup event to avoid duplicating code
code:
function Startup(){
//do startup stuff here
}
function OnEvent_Initialize(MessengerStart){
//Check if user is signed in when script is started
if((MessengerStart == false) && (Messenger.MyStatus > 1)){
Startup();
}
}
function OnEvent_SigninReady(){
Startup();
}