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:
Deco
Full Member
***


Posts: 188
Reputation: 4
42 / Male / Flag
Joined: Aug 2006
RE: RE: RE: [Request] In / Out Text Replacer
quote:
Originally posted by Yukai
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.




In this part. Change "FirstWord" to the word in romaji you want.
Then Change "SecondWord" to another word you want in romaji.
and so on.

In the second part change "KanjiWord" to any kanji word you want.. like "feioso" or something (sorry I don't know kanji).

Hope you get it this time!

code:
var romaji = new Array(
"FirstWord",
"SecondWord",
"ThirdWord",
"FourthWord",
"FifthWord."
);

var kanji = new Array(
"KanjiWord",
"SecondKanjiWord",
"ThirdKanjiWord"
);

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