What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » ChatWnd.SendMessage stops

Pages: (2): « First [ 1 ] 2 » Last »
ChatWnd.SendMessage stops
Author: Message:
H-J
New Member
*


Posts: 5
– / Male / –
Joined: Aug 2006
O.P. Dodgy  ChatWnd.SendMessage stops
Hello,

I've a problem with sendig a lot of text by using ChatWnd.SendMessage. Afther 15 entries the chatwindow accept no input from the ChatWnd.SendMessage function. Is that a security? By that, how can I overrule the security?
I ve also tried with a wait/sleep but that doesnot work. (setTimeout("moveNext()", 1000)) afther 10 rows. Also the wait.dll does not make me happy. does not work or I make mistake.. . :$

Can someone help me?



                if (RSSong.EOF)
                {
                    ChatWnd.SendMessage("+.+ Niets gevonden" );
                }
                else
                {
                    ChatWnd.SendMessage("+.+ Wel wat gevonden met " + ZoekenNaar );
                    var aa = 1
                    while (!RSSong.EOF)
                    {
                      if(aa == 10)
                      {
                        Interop.Call(MsgPlus.ScriptFilesPath+'\\Wait.dll', "Attente", 2000);
                        Interop.FreeDLL(MsgPlus.ScriptFilesPath+'\\Wait.dll');
                        RSSong.moveNext();
                        var aa = 1
                      }
                      else
                      {
                        aa = aa + 1
                        ChatWnd.SendMessage("+.+ ID:"+RSSong("ID").Value+" ---- " + RSSong("artist").Value + ", " + RSSong("title").Value);
                        RSSong.moveNext();
                      }

                    }
                }
                RSSong.Close();
Greetings H-J
--------------------------------
Friday Madness Radio
Music you control
www.fm-r.nl
--------------------------------
08-02-2006 05:30 PM
Profile E-Mail PM Web Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: ChatWnd.SendMessage stops
quote:
Originally posted by H-J
Afther 15 entries the chatwindow accept no input from the ChatWnd.SendMessage function. Is that a security?

Yeh, there is a limit of what you can send :P.
08-02-2006 05:32 PM
Profile PM Find Quote Report
H-J
New Member
*


Posts: 5
– / Male / –
Joined: Aug 2006
O.P. RE: ChatWnd.SendMessage stops
Great....  I love scripting... :'(

But, how can I post more rows?
By waiting to send?

Greetings H-J
--------------------------------
Friday Madness Radio
Music you control
www.fm-r.nl
--------------------------------
08-02-2006 05:37 PM
Profile E-Mail PM Web Find Quote Report
rob_botch
Full Member
***

Avatar

Posts: 180
Reputation: 4
33 / Male / Flag
Joined: Apr 2006
RE: ChatWnd.SendMessage stops
AFAIK the only way to send messages again is if the contact sends a message, or the user sends one manually.

Hope this helps

Robert
08-02-2006 05:41 PM
Profile E-Mail PM Web Find Quote Report
H-J
New Member
*


Posts: 5
– / Male / –
Joined: Aug 2006
O.P. RE: ChatWnd.SendMessage stops
Thx but no option.
I want to create a music request robot. The problem shows when a MSNchat person request a title list. The script search in SQL and returns several rows. By row 15 it stops....
The setTimeout() doesnot work. I get an object error. My idea was to freeze the SQLoutput. To bad.

This post was edited on 08-02-2006 at 06:08 PM by H-J.
Greetings H-J
--------------------------------
Friday Madness Radio
Music you control
www.fm-r.nl
--------------------------------
08-02-2006 06:07 PM
Profile E-Mail PM Web Find Quote Report
foaly
Senior Member
****

Avatar

Posts: 718
Reputation: 20
38 / Male / Flag
Joined: Jul 2006
RE: ChatWnd.SendMessage stops
can't you send in one message??
08-02-2006 06:12 PM
Profile E-Mail PM Find Quote Report
rob_botch
Full Member
***

Avatar

Posts: 180
Reputation: 4
33 / Male / Flag
Joined: Apr 2006
RE: ChatWnd.SendMessage stops
As foaly said, sending the list in one message would probably be the best way to solve this. You can send a lot of lines in one message. The "\n" string introduces a new line. I believe that this has been discussed on these forum in passing in connection with the Fileserver script.

Hope this helps

Robert
08-02-2006 06:23 PM
Profile E-Mail PM Web Find Quote Report
Patchou
Messenger Plus! Creator
*****

Avatar

Posts: 8607
Reputation: 201
43 / Male / Flag
Joined: Apr 2002
RE: ChatWnd.SendMessage stops
What you're experiencing is the flood protection mechanism. It prevents scripts to send more than 15 messages within 20 seconds. If you add a timer to send your messages one after the other in a short interval( let's say 1 second) then it should work fine.
[Image: signature2.gif]
08-02-2006 06:53 PM
Profile PM Web Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
36 / Male / –
Joined: May 2004
Status: Away
RE: ChatWnd.SendMessage stops
Is there really a need for flood protection?  Is it just in case people make infinite loops by accident or is it just to stop people making flooders?

Because I could make a script that would delete half of someones registry and critical system files, record their passwords and email them to me or never let them sign in without removing the script... but I couldn't make a flooder?

Ah well, doesn't matter, it rarely gets in the way of legitimate scripting anyway I suppose, just seems like an unnecessary restriction to me.
08-02-2006 06:58 PM
Profile E-Mail PM Find Quote Report
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
34 / Male / –
Joined: Jun 2004
RE: ChatWnd.SendMessage stops
Wouldn't it be possible to simulate the user sending a message by putting your message in the edit box with your script, then simulating and enter keypress?

Just a thought, i havn't tried it myself ;)
08-02-2006 07:02 PM
Profile PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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