What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Replacing Text Using Scripts (I think I'm dumb lol)

[Help] Replacing Text Using Scripts (I think I'm dumb lol)
Author: Message:
Joereynolds89
Junior Member
**


Posts: 69
Joined: Jul 2006
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol)
because theres too much unneeded code, i thought creating a personal font would be sooo much easier :P

So what would the script be to ignore any changes if / , http or www is at the start and to change every instance of one letter to another :S pai just confused me, im an amateur scripter :P

EDIT: maybe something i did wrong last time, pais thing now works, ill test the ignorance if certain values are found next, but big thanx to pia :D

EDIT2:
How would i make it so changes dont occur if www, http or / is displayed anywhere within the message?? thanks
code:
function OnEvent_Initialize(MessengerStart)
{
}
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage)
{
sMessage = sMessage.replace(/a/g,"A");
sMessage = sMessage.replace(/b/g,"B");
sMessage = sMessage.replace(/c/g,"C");
sMessage = sMessage.replace(/d/g,"D");
sMessage = sMessage.replace(/e/g,"E");
sMessage = sMessage.replace(/f/g,"F");
sMessage = sMessage.replace(/g/g,"G");
sMessage = sMessage.replace(/h/g,"H");
sMessage = sMessage.replace(/i/g,"I");
sMessage = sMessage.replace(/j/g,"J");
sMessage = sMessage.replace(/k/g,"K");
sMessage = sMessage.replace(/l/g,"L");
sMessage = sMessage.replace(/m/g,"M");
sMessage = sMessage.replace(/n/g,"N");
sMessage = sMessage.replace(/o/g,"O");
sMessage = sMessage.replace(/p/g,"P");
sMessage = sMessage.replace(/q/g,"Q");
sMessage = sMessage.replace(/r/g,"R");
sMessage = sMessage.replace(/s/g,"S");
sMessage = sMessage.replace(/t/g,"T");
sMessage = sMessage.replace(/u/g,"U");
sMessage = sMessage.replace(/v/g,"V");
sMessage = sMessage.replace(/w/g,"W");
sMessage = sMessage.replace(/x/g,"X");
sMessage = sMessage.replace(/y/g,"Y");
sMessage = sMessage.replace(/z/g,"Z");
return sMessage;
}
function OnEvent_Uninitialize(MessengerExit)
{
}

The replacment with capitals is just for example, there will be symbols here instead so no comments about using .toUppercase please

Joe

This post was edited on 07-12-2006 at 08:18 PM by Joereynolds89.
07-12-2006 07:51 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Keikonium on 07-11-2006 at 10:51 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by noroom on 07-11-2006 at 10:53 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-11-2006 at 11:11 PM
RE: RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by jmccarroll on 07-11-2006 at 11:17 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Keikonium on 07-11-2006 at 11:16 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-11-2006 at 11:17 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Keikonium on 07-11-2006 at 11:33 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-11-2006 at 11:37 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Nathan on 07-11-2006 at 11:41 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Silentdragon on 07-11-2006 at 11:46 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-11-2006 at 11:57 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by aNILEator on 07-12-2006 at 07:26 AM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by aNILEator on 07-12-2006 at 07:29 AM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-12-2006 at 01:05 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by noroom on 07-12-2006 at 01:31 PM
RE: RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-12-2006 at 01:37 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Keikonium on 07-12-2006 at 01:47 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Pai on 07-12-2006 at 01:55 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-12-2006 at 02:25 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Pai on 07-12-2006 at 05:48 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by aNILEator on 07-12-2006 at 06:22 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Silentdragon on 07-12-2006 at 07:25 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-12-2006 at 07:51 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by segosa on 07-12-2006 at 09:35 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Pai on 07-13-2006 at 12:43 AM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by segosa on 07-13-2006 at 08:54 AM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-13-2006 at 09:57 AM
RE: RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by segosa on 07-13-2006 at 10:04 AM


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