What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] In / Out Text Replacer

[Request] In / Out Text Replacer
Author: Message:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: [Request] In / Out Text Replacer
hmmm... (untested)

code:
var romaji = new Array(
"Just",
"Like",
"This",
"Separated by comma",
"unless if it's the last one."
);

var kanji = new Array(
"Same",
"Goes",
"Here"
);

function OnEvent_ChatWndSendMessage(Chatwnd, Message){
for(i=0;i<romaji.length;i++){
var Word = new RegExp(romaji[i], "gi");
Message = Message.replace(Word, kanji[i]);
}
return Message;
}

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
if(Origin != Messenger.MyName && MessageKind == 1){
for(i=0;i<kanji.length;i++){
var Word = new RegExp(kanji[i], "gi");
Message = Message.replace(Word, romaji[i]);
}
return Message;
}
}

Paste that in a new script and ther you go (Y)

it might fail in some cases though...

* roflmao456 calls Cookie to explain :P

This post was edited on 06-24-2007 at 07:33 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
06-24-2007 07:32 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] In / Out Text Replacer - by Yukai on 06-24-2007 at 06:01 PM
RE: [Request] In / Out Text Replacer - by toddy on 06-24-2007 at 06:07 PM
RE: [Request] In / Out Text Replacer - by Yukai on 06-24-2007 at 06:12 PM
RE: [Request] In / Out Text Replacer - by roflmao456 on 06-24-2007 at 07:32 PM
RE: RE: [Request] In / Out Text Replacer - by Yukai on 06-24-2007 at 07:47 PM
RE: RE: RE: [Request] In / Out Text Replacer - by Deco on 06-24-2007 at 09:46 PM
RE: [Request] In / Out Text Replacer - by Yukai on 06-24-2007 at 10:36 PM
RE: [Request] In / Out Text Replacer - by roflmao456 on 06-25-2007 at 02:46 AM
RE: RE: [Request] In / Out Text Replacer - by CookieRevised on 06-25-2007 at 03:24 AM
RE: [Request] In / Out Text Replacer - by Yukai on 06-25-2007 at 11:18 AM
RE: [Request] In / Out Text Replacer - by CookieRevised on 06-25-2007 at 11:32 AM
RE: [Request] In / Out Text Replacer - by Yukai on 06-25-2007 at 12:31 PM
RE: [Request] In / Out Text Replacer - by markee on 06-26-2007 at 02:10 PM


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