Hi... looking into some scripts and fighting the lazy side of me, I tried to do this:
code:
var PreviousToTimerPSM
function OnEvent_Initialize(MessengerStart)
{
}
function OnEvent_Signin(Email)
{
Messenger.MyPersonalMessage = PreviousToTimerPSM; //stores the previous PSM while signing in
}
function OnEvent_Signout(Email)
{
PreviousToTimerPS = Messenger.MyPersonalMessage; //retrieves the previous PSM while signing in?
}
function OnEvent_Uninitialize(MessengerExit)
{
Messenger.MyPersonalMessage = PreviousToTimerPSM;
}
function OnEvent_MyStatusChange(NewStatus)
{
if( NewStatus == 3 )
{
Messenger.MyPersonalMessage = PreviousToTimerPSM; //if it's online, no need to count.
}
else if( NewStatus == 6 )
{
Messenger.MyPersonalMessage = "Estou ausente desde "+GetHours()+":"+GetMinutes();
}
else if( NewStatus == 4 )
{
Messenger.MyPersonalMessage = "Estou ocupado desde "+GetHours()+":"+GetMinutes();
}
else if( NewStatus == 5 )
{
Messenger.MyPersonalMessage = "Saí às "+GetHours()+":"+GetMinutes()+" mas volto logo!";
}
else if( NewStatus == 7 )
{
Messenger.MyPersonalMessage = "Estou ausente desde "+GetHours()+":"+GetMinutes();
}
else if( NewStatus == 8 )
{
Messenger.MyPersonalMessage = "Estou em uma ligação desde "+GetHours()+":"+GetMinutes();
}
else if( NewStatus == 9 )
{
Messenger.MyPersonalMessage = "Estou almoçando desde "+GetHours()+":"+GetMinutes();
}
}
could someone help checking errors or giving ideas? I can't test it from the job
thanks