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

Decline
Author: Message:
Quantum
Disabled Account
*****

Away.

Posts: 1055
Reputation: -17
31 / Male / Flag
Joined: Feb 2007
O.P. Decline
How can i automatically decline a file if it contains X OR Y in the message before that?

X or Y will be sentences. + How can i add it for more sentences so say i want to decline it for.

Hello, my name is gay.

or

Hello i am gay.

or

Hello, btw i am gay.

ect...

Thank you!
No longer here.
03-11-2008 07:18 PM
Profile PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: Decline
You can try taking the FileTransferLib.js out of WhoSentIt, but it won't work without a bit of tweaking as the code is a bit mixed up between that file and WhoSentIt.js I think
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
03-11-2008 10:31 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Decline
I'm guessing this is some sort of MSN Picture virus decliner :p
<Eljay> "Problems encountered: shit blew up" :zippy:
03-12-2008 12:00 AM
Profile PM Find Quote Report
Quantum
Disabled Account
*****

Away.

Posts: 1055
Reputation: -17
31 / Male / Flag
Joined: Feb 2007
O.P. RE: Decline
Yeah. Can it not be some like:

Ifchat = Hello. LOL

else if = LOL. Hello

function = declineFilesend

I know its not JS code but is it not simple like that?
No longer here.
03-12-2008 04:20 PM
Profile PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
RE: Decline
here's some code to detect if a word is in a message. (can't create a script .. on vacation and my computer isn't here :P (ip)(h))
code:
var blacklist = new Array(
"photos",
"check out these",
"i think this is you",
"is this you"
);
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
for(e=new Enumerator(blacklist);!e.atEnd();e.moveNext()){
if(Message.search(e.item())){
// contained blocked word(s)
}
}
}
[quote]
Ultimatess6
: What a noob mod
03-12-2008 07:12 PM
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