What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Random Line Away messages

Random Line Away messages
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: Random Line Away messages
Okay..

I have an idea that _should_ work (can't guarantee though):

code:
var RandomMessages = new Array("Message 0","Message 2",...,"Message9"); // no further than 9
OnEvent_ChatWndReceiveMessage(pChatWnd,mOrigin,sMessage,kMsgKind) {
      cWnd = pChatWnd;
      if(!TimerStarted) {
            if(mOrigin != Messenger.MyName) {
                  TimerStarted = true;
                  MsgPlus.AddTimer("TmrMsg",10000);
            }
      } else {
            MsgPlus.CancelTimer("TmrMsg");
            TimerStarted = false;
      }
      return sMessage;
}

function OnEvent_Timer(sTimerId) {
      if(sTimerId == "TmrMsg") {
            if(TimerStarted) {
                  cWnd.SendMessage(RandomMessage());
                  MsgPlus.AddTimer("TmrMsg",10000);
            }
      }
}

function RandomMessage() {
      Index = Math.random().charAt(4);
      return RandomMessages[Index];
}


EDIT::

Maybe you should prefix the messages with "AutoMessage: ", since this uses Plus!'s AutoMessage feature (when a personalised status is used)..

This post was edited on 06-29-2008 at 05:31 PM by SmokingCookie.
06-29-2008 05:29 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Random Line Away messages - by Aztek on 06-29-2008 at 02:40 AM
RE: Random Line Away messages - by SmokingCookie on 06-29-2008 at 04:44 PM
RE: Random Line Away messages - by Aztek on 06-29-2008 at 05:12 PM
RE: Random Line Away messages - by SmokingCookie on 06-29-2008 at 05:29 PM
RE: Random Line Away messages - by Aztek on 06-29-2008 at 05:31 PM
RE: Random Line Away messages - by SmokingCookie on 06-29-2008 at 05:33 PM
RE: Random Line Away messages - by Aztek on 06-29-2008 at 05:42 PM
RE: Random Line Away messages - by SmokingCookie on 06-29-2008 at 06:03 PM
RE: Random Line Away messages - by CookieRevised on 06-29-2008 at 11:12 PM
RE: RE: Random Line Away messages - by SmokingCookie on 06-30-2008 at 07:29 AM
RE: Random Line Away messages - by Aztek on 06-29-2008 at 11:16 PM
RE: Random Line Away messages - by CookieRevised on 06-30-2008 at 01:35 AM
RE: Random Line Away messages - by CookieRevised on 06-30-2008 at 06:52 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