Ok, this is my first script =X
As first function, I want it to display a toast showing my current status, when I change it.
For example. I'm appearing offline, then I change my status to online, want the script to display a toast saying; "Status: Online"
I've already discovered how to do it... but the problem is the it always shows my PREVIOUS status, not the current one.
This is what happens: I'm appearing offline, if I set my status to online, it shows "Status: Appearing Offline". After it, if i change my status again, this time to away, for example, it will display "Status: Online".
Any tips? =/
i'm using this code:
code:
function OnEvent_MyStatusChange(NewStatus)
{
if(Messenger.MyStatus == "2")
{
var Message = "Status: Appearing Offline";
MsgPlus.DisplayToast("", Message);
}
if(Messenger.MyStatus == "3")
{
var Message = "Status: Online";
MsgPlus.DisplayToast("", Message);
}
if(Messenger.MyStatus == "4")
{
var Message = "Status: Busy";
MsgPlus.DisplayToast("", Message);
}
if(Messenger.MyStatus == "5")
{
var Message = "Status: Be Right Back";
MsgPlus.DisplayToast("", Message);
}
if(Messenger.MyStatus == "6")
{
var Message = "Status: Idle";
MsgPlus.DisplayToast("", Message);
}
if(Messenger.MyStatus == "7")
{
var Message = "Status: Away";
MsgPlus.DisplayToast("", Message);
}
if(Messenger.MyStatus == "8")
{
var Message = "Status: In a Call";
MsgPlus.DisplayToast("", Message);
}
if(Messenger.MyStatus == "9")
{
var Message = "Status: Out to Lunch";
MsgPlus.DisplayToast("", Message);
}
}
(by the way, if someone wants to know, I'm doing this script to avoid selecting the wrong status. For example, setting status to Online when I want to change it to busy... also to confirm status has changed when using a skin with "Quick status Change" [as i call it]/ "Status Shortcuts" [as guena calls it])