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:
Yukai
New Member
*


Posts: 8
– / Male / –
Joined: Mar 2007
O.P. RE: RE: [Request] In / Out Text Replacer
quote:
Originally posted by roflmao456
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


Thank you so much for taking time to write that. But I feel kind of dumb since I don't understand what to replace and where.

06-24-2007 07:47 PM
Profile E-Mail PM 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