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
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
RE: Issue with SendMessage, not working after a while.
This is a limit built into plus itself to prevent exactly what you are doing. You have to manually send a message yourself to reset the counter, and be able to use SendMessage() again. Scripts like this are extremely annoying. You wouldn't want to be the receiver of something like this, would you?
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
09-16-2009 03:05 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


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