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:
Chestah
Veteran Member
*****

Avatar

Posts: 1658
Reputation: 34
35 / Male / –
Joined: Jun 2004
RE: << Script for Quick texts >>
quote:
Originally posted by Jimbodude
Sorry, i forgot i couldn't put ' after a return
use this instead:
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
if (Message.substr(0, 4)== "test"){
return'test1'
}
if (Message.substr(0, 4) == "cant"){
return'can"t'
}
if (Message.substr(0, 4) == "dont"){
return'don"t'
}
}




Use nanafreak's code, the code above is verbose and unneccesarily long when you are working with alot of words and its biggest disadvantage is that it only parses the word if it is the first thing that is typed (and also only does one word).

ie 'dont' will get changed into 'don't'

but if you typed 'hello!! hey, dont do that', it will not be parsed.
Segosa is newb.
01-06-2007 12:28 PM
Profile E-Mail PM Web 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