ChatWnd.SendMessage stops |
Author: |
Message: |
H-J
New Member
Posts: 5
– / / –
Joined: Aug 2006
|
O.P. 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 |
|
|
absorbation
Elite Member
Posts: 3636 Reputation: 81
– / /
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 .
|
|
08-02-2006 05:32 PM |
|
|
H-J
New Member
Posts: 5
– / / –
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 |
|
|
rob_botch
Full Member
Posts: 180 Reputation: 4
34 / /
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 |
|
|
H-J
New Member
Posts: 5
– / / –
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 |
|
|
foaly
Senior Member
Posts: 718 Reputation: 20
38 / /
Joined: Jul 2006
|
RE: ChatWnd.SendMessage stops
can't you send in one message??
|
|
08-02-2006 06:12 PM |
|
|
rob_botch
Full Member
Posts: 180 Reputation: 4
34 / /
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 |
|
|
Patchou
Messenger Plus! Creator
Posts: 8607 Reputation: 201
43 / /
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.
|
|
08-02-2006 06:53 PM |
|
|
alexp2_ad
Scripting Contest Winner
Who love the chocolate?
Posts: 691 Reputation: 26
37 / / –
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 |
|
|
Plik
Veteran Member
Posts: 1489 Reputation: 46
35 / / –
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 |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|