What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » If statements and editing a script

If statements and editing a script
Author: Message:
Jesus
Scripting Contest Winner
****

Avatar
Koffie, my cat ;)

Posts: 623
Reputation: 15
38 / Male / Flag
Joined: Jul 2005
RE: If statements and editing a script
That's because the code roflmao456 posted also adds a full stop to any commands you type. This should work:
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
if(/[a-z\d]$/i.test(Message) && Message.charAt(0) != "/") Message += ".";
return Message.charAt(0).toUpperCase() + Message.substr(1);
}
Man is least himself when he is in his own person. Give him a mask and he will tell you the truth. (Oscar Wilde)
09-25-2008 10:53 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
If statements and editing a script - by vanillaflavoured on 09-22-2008 at 09:43 PM
RE: If statements and editing a script - by Jesus on 09-23-2008 at 01:58 AM
RE: If statements and editing a script - by Burningmace on 09-23-2008 at 11:47 PM
RE: If statements and editing a script - by roflmao456 on 09-24-2008 at 12:13 AM
RE: If statements and editing a script - by Burningmace on 09-24-2008 at 12:46 AM
RE: RE: If statements and editing a script - by vanillaflavoured on 09-24-2008 at 12:20 PM
RE: If statements and editing a script - by roflmao456 on 09-24-2008 at 07:55 PM
RE: If statements and editing a script - by vanillaflavoured on 09-25-2008 at 10:41 AM
RE: If statements and editing a script - by Jesus on 09-25-2008 at 10:53 AM
RE: If statements and editing a script - by vanillaflavoured on 09-25-2008 at 11:22 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