What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » << Script for Quick texts >>

<< Script for Quick texts >>
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: << Script for Quick texts >>
This script will do it but the only problem is that you have to hard code them into the script yourself.  I could make something a bit more complex that will do the job for you but i cba.  I have given you some examples of how to hard code them in, you just use the first 2 lines and they must match up to the on you are changing it to.  I hope you like it.
code:
var original = new Array("dont","cant","wont");//what you are changing from
var changed = new Array("don't","can't","won't");//what you are changing to
function OnEvent_ChatWndMessageSent(ChatWnd,Message){
for(i in original){
Message = Message.replace(RegExp(original[i],"gi"),changed[i]);
}
return Message;
}


EDIT: thanks roflmao for fixing me up, teaches me right for writing scripts straight into a post :tongue:

EDIT2: fixed the problem that mattike pointed out on the second page.  hopefully i have learned my lesson now

This post was edited on 01-06-2007 at 04:09 PM by markee.
[Image: markee.png]
01-06-2007 03:37 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Quick Texts - Help ! - by Double_N2 on 01-05-2007 at 03:55 PM
RE: Quick Texts - Help ! - by CookieRevised on 01-05-2007 at 05:45 PM
RE: Quick Texts - Help ! - by Double_N2 on 01-05-2007 at 08:46 PM
RE: << Script for Quick texts >> - by Tochjo on 01-06-2007 at 05:26 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