What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Issue with SendMessage, not working after a while.

Issue with SendMessage, not working after a while.
Author: Message:
Swiftness
New Member
*


Posts: 1
Joined: Sep 2009
O.P. Issue with SendMessage, not working after a while.
Ok this script for spamming text "partially" works, but my issue is after a while (about 10-15 sends) it stops sending anything. If I send something anything manually however, it starts spamming again and still stops later. Here's the script -
code:
function OnEvent_Initialize(MessengerStart)
{
}
var toSpam = "";
var theChat;
function OnEvent_Uninitialize(MessengerExit)
{
}
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
    theChat = ChatWnd;
    Commands = Message.split(' ');
        switch (Commands[0]) {
            case "/spam" :
                toSpam = Message.substr(6);
                MsgPlus.AddTimer("asd", 200);
                return "";
                break;
            case "/stopspam" :
                MsgPlus.CancelTimer("asd");
                return "";
                break;
    }
}
function OnEvent_Timer(TimerId) {
    Debug.Trace(theChat.SendMessage(toSpam));
    MsgPlus.AddTimer("asd", 200);
}

The Debug.Trace for the SendMessage shows as true even when no message is sent. Could anyone tell me why this (no messages being sent) keeps occurring?
09-16-2009 12:16 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Issue with SendMessage, not working after a while. - by Swiftness on 09-16-2009 at 12:16 AM
RE: Issue with SendMessage, not working after a while. - by MeEtc on 09-16-2009 at 03:05 AM


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