quote:
Originally posted by roflmao456
Try out the MsgPlus.AddTimer and ChatWnd.SendMessage functions.
I explained my problem. When I put the ChatWnd, it does not recognize.
Can you help me please?
I want the script to write one sentence every 20 minutes, when my status is "busy".
Thank you very much.
Here is my code if it helps you.
var messages = new Array(), i=0;
messages[0] = "First Message";
messages[1] = "Second Message";
messages[2] = "Third Message";
function OnEvent_Initialize(MessengerStart)
{
}
function OnEvent_Uninitialize(MessengerExit)
{
}
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message)
{
if(Origin != Messenger.MyName)
{
if(!i[ChatWnd.Handle])i[ChatWnd.Handle]=0;
if(i[ChatWnd.Handle] == messages.length)i[ChatWnd.Handle]=0;
ChatWnd.SendMessage(messages[i[ChatWnd.Handle]++]);
}
}
up