Shoutbox

[Request] Multi msg script - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Request] Multi msg script (/showthread.php?tid=65568)

[Request] Multi msg script by ombadboy on 08-29-2006 at 11:22 PM

Ive requested it before, but didnt seem to get the result i needed.

Is there any script, or some1 cud script something that wud message ALL online contacts?

e.g !all "your text here" would message all contacts that are online (regardless if their window is open or not as with /all )


RE: [Request] Multi msg script by Huhu_Manix on 08-29-2006 at 11:46 PM

code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){
if(Message.substring(0, 5)=="!all "){
var msg = Message.substring(5);
var e = new Enumerator(Messenger.MyContacts);
for(; !e.atEnd(); e.moveNext()){
  var Contact = e.item();
  if(Contact.Status!=1){
   var wnd = Messenger.OpenChat(Contact.Email);
   wnd.SendMessage(msg);
  }
}
}
}

This could work but it think there'll be a sending problem...too much message. :s
RE: [Request] Multi msg script by rob_botch on 08-30-2006 at 08:43 AM

Well you could make a script that would look through the contact list, and open a window with all online contacts, then send a message starting with /all. But this isn't a very neat way of doing it.

EDIT: This would bypass the sending limits.


RE: [Request] Multi msg script by ombadboy on 08-30-2006 at 11:04 AM

any ides on how to go on about doing that? :P


RE: [Request] Multi msg script by foaly on 08-30-2006 at 11:29 AM

quote:
Originally posted by ombadboy
any ides on how to go on about doing that? :P
won't this work?:

quote:
Originally posted by Huhu_Manix
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){
if(Message.substring(0, 5)=="!all "){
var msg = Message.substring(5);
var e = new Enumerator(Messenger.MyContacts);
for(; !e.atEnd(); e.moveNext()){
  var Contact = e.item();
  if(Contact.Status!=1){
   var wnd = Messenger.OpenChat(Contact.Email);
  }
}
ChtWnd.SendMessage("/all "+msg);
//here you might want to close all the chatwindows...
return;
}
}



I guess that would work... but I don't want to irritate my contacts to check sorry...

RE: [Request] Multi msg script by ombadboy on 08-30-2006 at 02:02 PM

emm.. i tried it out..

it sends it to sum contacts, then i get error for exceeding message limit per minute

edit: the one foaly posted doesnt quite work..


RE: [Request] Multi msg script by Huhu_Manix on 08-30-2006 at 03:49 PM

The script post by foaly should work without message limit. ^o)

Did you try my script or foaly's script ?


RE: RE: [Request] Multi msg script by ombadboy on 08-30-2006 at 09:58 PM

quote:
Originally posted by Huhu_Manix
The script post by foaly should work without message limit. ^o)

Did you try my script or foaly's script ?


your script works fine, but i get the error with the message limit

foaly's script doesnt work at all..
RE: [Request] Multi msg script by foaly on 08-31-2006 at 04:54 PM

quote:
Originally posted by foaly

quote:
Originally posted by Huhu_Manix
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){
if(Message.substring(0, 5)=="!all "){
var msg = Message.substring(5);
var e = new Enumerator(Messenger.MyContacts);
for(; !e.atEnd(); e.moveNext()){
  var Contact = e.item();
  if(Contact.Status!=1){
   var wnd = Messenger.OpenChat(Contact.Email);
  }
}
ChtWnd.SendMessage("/all "+msg);
ChatWnd.SendMessage("/all "+msg);
//here you might want to close all the chatwindows...
return;
}
}




spelling error...
try this one
RE: [Request] Multi msg script by skyserpent on 08-31-2006 at 11:44 PM

it brings every window up and tries to send the message but i get

  The following message could not be delivered because you have exceeded the maximum number of messages per minute. Please try again later.
this message is just testing one of my scripts

it sends to a couple and the rest i get ^^


RE: [Request] Multi msg script by foaly on 08-31-2006 at 11:53 PM

that shouldn't be happening...
I thought /all bypassed the maximum number of messages thingy...


RE: [Request] Multi msg script by ombadboy on 09-01-2006 at 06:59 PM

seems it doesnt :P


RE: [Request] Multi msg script by benjyrama on 09-03-2006 at 11:26 AM

is there a script that could disable the maximum number or messages?


RE: [Request] Multi msg script by CookieRevised on 09-08-2006 at 04:04 PM

quote:
Originally posted by foaly
that shouldn't be happening...
I thought /all bypassed the maximum number of messages thingy...
it bypasses nothing.

The maximum number of messages per x seconds you can do with the use of the SendMessage function, with quicktexts, etc are limited by Messenger Plus! as a flood protection.

Not only that, but the Messenger protocol itself has a flood protection too.

Both things can (should) not be bypassed.

quote:
Originally posted by benjyrama
is there a script that could disable the maximum number or messages?
no

RE: [Request] Multi msg script by ombadboy on 09-08-2006 at 08:17 PM

humm.. maybe if its done with a timer?

like.. send to the first 5 contacts lets say the specific msg, then wait till the "time to send next msg" hs passed, send to the next 5, etc?


RE: [Request] Multi msg script by cloudhunter on 09-09-2006 at 02:03 AM

quote:
Originally posted by ombadboy
humm.. maybe if its done with a timer?

like.. send to the first 5 contacts lets say the specific msg, then wait till the "time to send next msg" hs passed, send to the next 5, etc?

Nope, the limitation is how many messages are send with the SendMessage, which I believe is 14, so a timer wouldn't solve anything.

Cloudy
RE: [Request] Multi msg script by ombadboy on 09-09-2006 at 10:12 AM

well.. the limit sometime has to end.. right?
what if we use "sendmessage" 4-5 times?

like.. use 1 sendmessage for the 1st 5 contacts, another sendmessage for the next 5 etc etc?
am not sure how scripting works or if this is plausible, just an idea tho..


RE: [Request] Multi msg script by CookieRevised on 09-10-2006 at 08:39 PM

quote:
Originally posted by ombadboy
well.. the limit sometime has to end.. right?
what if we use "sendmessage" 4-5 times?

like.. use 1 sendmessage for the 1st 5 contacts, another sendmessage for the next 5 etc etc?
am not sure how scripting works or if this is plausible, just an idea tho..
It doesn't work that way.

The SendMessage function will only send 1 message to 1 chat window at a time. You can not give a list of contacts.