O.P. Question about "MyStatus"
I wrote this rather pointless script (just practicing) and it works, but there's something I wanted to ask if you could change.
Here's the Script:
function OnEvent_ChatWndCreated(ChatWnd)
{
var Message = "Your current status is " + Messenger.MyStatus + "!";
Message = MsgPlus.RemoveFormatCodes(Message);
MsgPlus.DisplayToast("", Message)
}
I was wondering if you could make it say in the message your actual status (i.e. "busy" | "online" | "away" | etc) instead of using the numbers associated with each status.
EDIT: I'm also failing to write a script that changes my status to busy every time I send a message if I'm not already set as busy. So far I came up with this...:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
if(MyStatus == (7))
{
var Message = "/busy";
Message = MsgPlus.RemoveFormatCodes(Message);
Messenger.ChatWnd.SendMessage
}
}
^ guessed a lot
Thanks
~ 5n4k3
This post was edited on 01-17-2010 at 06:21 PM by 5n4k3.
|