What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request]: Send message on conversation start, repeat message on timer.

[Request]: Send message on conversation start, repeat message on timer.
Author: Message:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: [Request]: Send message on conversation start, repeat message on timer.
try this out:
code:
var cmd = "/some command"; // your own command here (with slash)
var cwnd;
var delay = 60; // delay when to repeat message (in seconds)
function OnEvent_ChatWndCreated(ChatWnd){
ChatWnd.SendMessage(cmd);
cwnd = ChatWnd;
MsgPlus.CancelTimer("sendmsg");
MsgPlus.AddTimer("sendmsg", parseInt(delay) * 1000);
}

function OnEvent_Timer(i){
if(i == "sendmsg"){
cwnd.SendMessage(cmd);
}
}


This post was edited on 02-18-2008 at 08:29 AM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
02-18-2008 08:29 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request]: Send message on conversation start, repeat message on timer. - by Eiron on 02-14-2008 at 07:37 PM
RE: [Request]: Send message on conversation start, repeat message on timer. - by roflmao456 on 02-18-2008 at 08:29 AM
RE: [Request]: Send message on conversation start, repeat message on timer. - by matty on 02-18-2008 at 02:22 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On