What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » adding a space in the end of every message

adding a space in the end of every message
Author: Message:
Double_N2
New Member
*


Posts: 10
Joined: Jan 2007
O.P. adding a space in the end of every message
Hello,
What command would add a space to every message i sent?
for example
"hi! "
"hi!{space}"
Thanks.
01-06-2007 06:22 PM
Profile E-Mail PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: adding a space in the end of every message
why would you need a space after every message?

code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){
Message = Message + " ";
return Message;
}

that should work. just make a new script and name it to something and paste the code in there.

This post was edited on 01-06-2007 at 08:42 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
01-06-2007 08:40 PM
Profile PM Web Find Quote Report
MrT
Junior Member
**

Coding For Fun

Posts: 62
35 / Male / Flag
Joined: Jul 2006
RE: adding a space in the end of every message
code:

function OnEvent_ChatWndSendMessage(ChatWnd, sMessage) {
    return sMessage + " " ;
   
}


01-06-2007 08:41 PM
Profile E-Mail PM Web Find Quote Report
Double_N2
New Member
*


Posts: 10
Joined: Jan 2007
O.P. RE: adding a space in the end of every message
I want to make words like "tho" to be "though" and i have to do it by "(space)tho(space) => "(space)though(space)
or else the word "thought" will be "thouhught"

so if the word is in the end of the sentence there will never be a space there. thats why i need this command. thank you.

This post was edited on 01-06-2007 at 08:45 PM by Double_N2.
01-06-2007 08:43 PM
Profile E-Mail PM Find Quote Report
MrT
Junior Member
**

Coding For Fun

Posts: 62
35 / Male / Flag
Joined: Jul 2006
RE: adding a space in the end of every message
code:

function OnEvent_ChatWndSendMessage(ChatWnd, sMessage) {

    Message = replace(Message, "tho", "though");
    return Message ;

}



like this?
01-06-2007 08:51 PM
Profile E-Mail PM Web Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: adding a space in the end of every message
i dont get it, but il try:

code:
/*
Just add ,"" in the array between the brackets if you want to add more.

this is NanaFreak's and markee's code. so credits to him.
*/


var changeFrom = new Array("tho","thouhught"// changing word
var changeTo = new Array("though","thought") // change to this

function OnEvent_ChatWndSendMessage(ChatWnd, Message){
for(i in original){
Message = Message.replace(original[i],changed[i]);
}

i do not think that you can use " => " to change it .... correct me if im wrong.

This post was edited on 01-06-2007 at 09:01 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
01-06-2007 08:55 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


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