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

/ commands
Author: Message:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
RE: / commands
why will you have to repeat the same thing again and again?

just use regular expression:

code:
sMessage = sMessage.replace(/whatever/gi,"something")

/whatever/gi << change the "whatever" to a letter; the g means that it will search for multiple entries; the i is ignore case.


edit: i do not think you should put words in there also.. because the letters will take care of it?

i will try and fix this.. i will update this post once its finished so hold on to your butt :happy:

------------


i did it some other way.. so here. i tested it and it works - not sure if you wanted this kind

.zip File Attachment: 1337 script.zip (991 bytes)
This file has been downloaded 146 time(s).

This post was edited on 02-11-2007 at 02:21 AM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
02-10-2007 11:49 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
/ commands - by JANiT0R on 02-04-2007 at 05:17 PM
RE: / commands - by Matti on 02-04-2007 at 06:47 PM
RE: RE: / commands - by CookieRevised on 02-05-2007 at 01:16 AM
RE: / commands - by JANiT0R on 02-10-2007 at 09:02 PM
RE: / commands - by roflmao456 on 02-10-2007 at 11:49 PM
RE: / commands - by CookieRevised on 02-11-2007 at 10:25 AM
RE: / commands - by roflmao456 on 02-11-2007 at 03:33 PM
RE: / commands - by CookieRevised on 02-12-2007 at 11:07 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