[request] report feature (paying $$$) |
Author: |
Message: |
icepick66
Junior Member
Uhh Radiation
Posts: 37 Reputation: 1
35 / / –
Joined: Jun 2006
|
O.P. [request] report feature (paying $$$)
Hi, i run a server which has msn on it and its signed into a account 24/7,
i use this to provide help to users if their are expericeing trobble with the server, and basicly i want it so when a user types report [message],
(the message being the problem they are trying to comunicate with me)
it will msn my home pc's msn account with their email address and message of the user, and obiously when im offline it will send a offline message.
im expericend with scripts so dont bother with a menu
and im offering $5 mabey $10 if done quickly
thankyou
|
|
08-22-2006 11:21 AM |
|
|
saralk
Veteran Member
Posts: 2598 Reputation: 38
35 / /
Joined: Feb 2003
|
RE: [request] report feature (paying $$$)
icepick66.
I have almost finished it. PM me for details.
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
|
|
08-22-2006 12:32 PM |
|
|
Felu
Veteran Member
Posts: 2223 Reputation: 72
30 / /
Joined: Apr 2006
Status: Away
|
RE: [request] report feature (paying $$$)
code: function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
if (Origin != Messenger.MyName){
var e = new Enumerator(ChatWnd.Contacts);
for(; !e.atEnd(); e.moveNext())
var Contact = e.item();
var From = "From : "+Contact.Email
var Message = "\n\nMessage : "+Message
Messenger.OpenChat(YourHomeEmail).SendMessage(From+Message);//edit to your home email within quotes.
}
}
Simple code .
And i don't want money for it .
This post was edited on 08-22-2006 at 12:44 PM by Felu.
|
|
08-22-2006 12:37 PM |
|
|
CookieRevised
Elite Member
Posts: 15517 Reputation: 173
– / /
Joined: Jul 2003
Status: Away
|
RE: [request] report feature (paying $$$)
If I understand correctly: what he asks for is a code so his bot which is run from the server 24/7, will message his personal MSN account.
If his bot is a php script or whatever (thus a full blown msn client), he is asking his request in the wrong forum.
Only if his bot and server is running on Windows and uses Windows Live Messenger itself with Plus!, a Plus! script can be used for this. Otherwise he needs php code (or in whatever language his msn client is written)....
quote: Originally posted by -!Felu!-
code: function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
if (Origin != Messenger.MyName){
var e = new Enumerator(ChatWnd.Contacts);
for(; !e.atEnd(); e.moveNext())
var Contact = e.item();
var From = "From : "+Contact.Email
var Message = "\n\nMessage : "+Message
Messenger.OpenChat(YourHomeEmail).SendMessage(From+Message);//edit to your home email
}
}
Simple code
...but buggy code.
What your code will do is sending a message for only the last contact there is in the conversation, even if the first contact has send the message (and as such, you don't need to use the for loop, just e.moveLast() would do).
quite possible that his bot never uses multi-contact chats, but even so, the bug in that script needs to be fixed:
code: function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) {
if (Origin !== Messenger.MyName) {
for (var e = new Enumerator(ChatWnd.Contacts); !e.atEnd(); e.moveNext()) {
var Contact = e.item();
if (Origin === Contact.Name) {
var From = "From : " + Contact.Email;
var Message = "\n\nMessage : " + Message;
Messenger.OpenChat(YourHomeEmail).SendMessage(From+Message);
return;
}
}
}
}
This post was edited on 08-22-2006 at 01:01 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
|
|
08-22-2006 12:45 PM |
|
|
saralk
Veteran Member
Posts: 2598 Reputation: 38
35 / /
Joined: Feb 2003
|
RE: [request] report feature (paying $$$)
That script will forward every message, not just messages starting with report.
code: function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
Pattern = /^report/i
OK = Pattern.exec(Message)
if (OK) {
var Contacts = ChatWnd.Contacts
var e = new Enumerator(Contacts);
for (; !e.atEnd(); e.moveNext())
{
var Contact = e.item();
Debug.Trace(" " + Contact.Email);
if (Origin === Contact.Name) {
Messenger.OpenChat("YOUREMAIL");
ChatWnd.SendMessage("Message From " + Contact.Email);
ChatWnd.SendMessage(Message);
}
}
}
}
quote: Originally posted by CookieRevised
(and as such, you don't need to use the for loop, just e.moveLast() would do).
I tried using that method, but it didn't work.
Click quote to get a tabulated code.
This post was edited on 08-22-2006 at 01:05 PM by saralk.
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
|
|
08-22-2006 01:01 PM |
|
|
CookieRevised
Elite Member
Posts: 15517 Reputation: 173
– / /
Joined: Jul 2003
Status: Away
|
RE: RE: [request] report feature (paying $$$)
[OFF TOPIC]
quote: Originally posted by saralk
quote: Originally posted by CookieRevised
(and as such, you don't need to use the for loop, just e.moveLast() would do).
I tried using that method, but it didn't work.
my bad... moveLast doesn't exist (moveFirst() does though.... crappy JScript again)...
[OFF TOPIC]
.-= A 'frrrrrrrituurrr' for Wacky =-.
|
|
08-22-2006 01:37 PM |
|
|
icepick66
Junior Member
Uhh Radiation
Posts: 37 Reputation: 1
35 / / –
Joined: Jun 2006
|
O.P. RE: [request] report feature (paying $$$)
quote: Originally posted by saralk
That script will forward every message, not just messages starting with report.
code: function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
Pattern = /^report/i
OK = Pattern.exec(Message)
if (OK) {
var Contacts = ChatWnd.Contacts
var e = new Enumerator(Contacts);
for (; !e.atEnd(); e.moveNext())
{
var Contact = e.item();
Debug.Trace(" " + Contact.Email);
if (Origin === Contact.Name) {
Messenger.OpenChat("YOUREMAIL");
ChatWnd.SendMessage("Message From " + Contact.Email);
ChatWnd.SendMessage(Message);
}
}
}
}
quote: Originally posted by CookieRevised
(and as such, you don't need to use the for loop, just e.moveLast() would do).
I tried using that method, but it didn't work.
Click quote to get a tabulated code.
Thanks saralk ill pay u £5 (around $10) as ur in the uk whats ur paypal?
but it just reports it to the user who types report and doesent send a msg to me
oh the bot is a msg plus script, its not a clever bot tho , just predefined answers
and finaly do you know how to auto accept added contacts?
This post was edited on 08-23-2006 at 09:24 AM by icepick66.
|
|
08-23-2006 08:54 AM |
|
|
icepick66
Junior Member
Uhh Radiation
Posts: 37 Reputation: 1
35 / / –
Joined: Jun 2006
|
O.P. RE: [request] report feature (paying $$$)
attualy i fixed it by using code from both of yours the final thing was:
code: function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
Pattern = /^report/i
OK = Pattern.exec(Message)
if (OK) {
var Contacts = ChatWnd.Contacts
var e = new Enumerator(Contacts);
for (; !e.atEnd(); e.moveNext())
{
var Contact = e.item();
Debug.Trace(" " + Contact.Email);
if (Origin === Contact.Name) {
var From = "From : " + Contact.Email;
var Message = "\n\nMessage : " + Message;
Messenger.OpenChat("myemail").SendMessage(From+Message);
return;
}
}
}
}
£2.50 each (around $5 each) to cookie and saralk
thanks guys pm me ur paypal
and finaly do you know how to auto accept added contacts?
|
|
08-23-2006 09:33 AM |
|
|
saralk
Veteran Member
Posts: 2598 Reputation: 38
35 / /
Joined: Feb 2003
|
RE: [request] report feature (paying $$$)
saralk@fw6.net
auto accepting might be a bit more difficult, afaik there isn't a function that is triggered when you get the accept contact window. I'll look into it.
This post was edited on 08-23-2006 at 09:47 AM by saralk.
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
|
|
08-23-2006 09:47 AM |
|
|
Sunshine
Elite Member
Posts: 5141 Reputation: 122
– / /
Joined: Mar 2004
Status: Away
|
RE: [request] report feature (paying $$$)
quote: Originally posted by icepick66
and finaly do you know how to auto accept added contacts?
I believe unticking the 2 (esp. last one, first is to allow messaging you if they are not on your list) shown in the picture below will do that.
If you don't want to be notified then it's auto accept right?
Attachment: privacy.PNG (21.83 KB)
This file has been downloaded 665 time(s).
This post was edited on 08-23-2006 at 09:56 AM by Sunshine.
|
|
08-23-2006 09:48 AM |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|