Shoutbox

Who Can Make Me ... - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Who Can Make Me ... (/showthread.php?tid=86473)

Who Can Make Me ... by Burnett1 on 10-07-2008 at 08:07 PM

[font=Tahoma]

Just Wounderin If Thurs Any Chance Anyone Can Make Or Knows Of A Script That Makes Every First Letter Of Every Word In A Msn Conversation Turn To Cap ?

RE: Who Can Make Me ... by Kenji on 10-07-2008 at 09:54 PM

No, and if anyone makes one I will personally kill them.


RE: Who Can Make Me ... by Burnett1 on 10-07-2008 at 10:15 PM

How ? Wits Rong With A Script That Would Do That ?


RE: Who Can Make Me ... by Justin on 10-07-2008 at 11:27 PM

quote:
Originally posted by Burnett1
How ? Wits Rong With A Script That Would Do That ?

It's annoying. I hate it when people talk like that.
RE: Who Can Make Me ... by Jarrod on 10-07-2008 at 11:51 PM

quote:
Originally posted by Dazzy
No, and if anyone makes one I will personally kill them.
agreed
[edit more python

Python code:
a = "hello world this is the most annoying python code ever"
b = 0
d = 0
c = ""
e = ""
a = raw_input("text here")
for letter in a:
    if d == 0:
        c = c + letter.upper()
        d = d + 1
       
    else:
        c = c + letter
 
for letter in c:
    if letter == " ":
        b = 1
    else:
        if b == 1:
            letter = letter.upper()
            b = 0
 
    e = e + letter
print e


RE: Who Can Make Me ... by davidpolitis on 10-08-2008 at 10:28 AM

Does this work? EDIT: used SLM's code below.

JScript code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
    Msg = Message.split(" ");
    for(var s in Msg)
    {
        Msg[s] = Msg[s].substr(0,1).toUpper() + Msg[s].substr(1);
    }
    return Msg.join(" ");
}


RE: Who Can Make Me ... by Spunky on 10-08-2008 at 10:46 AM

JScript code:
msg = msg.split(" ")
for(var s in msg){
    msg[s] = msg[s].substr(0,1).toUpper() + msg[s].substr(1)
}
return msg.join(" ")


You'd need to add checking for commands etc... Probably not actually as they're case insensitive
RE: Who Can Make Me ... by Burnett1 on 10-08-2008 at 08:03 PM

I cant get these codes to work, I dont have a clue about these codes so help would be appreciated.


RE: Who Can Make Me ... by djdannyp on 10-08-2008 at 09:49 PM

Here you go


RE: Who Can Make Me ... by Burnett1 on 10-09-2008 at 12:39 AM

cheer :D legend :D


RE: Who Can Make Me ... by Spunky on 10-09-2008 at 06:55 AM

quote:
Originally posted by Burnett1
cheer :D legend :D

Who gave the code first? A thanks would be nice ;)
RE: Who Can Make Me ... by Jarrod on 10-09-2008 at 11:08 AM

read script info.xml
you got your credit


RE: RE: Who Can Make Me ... by djdannyp on 10-09-2008 at 06:38 PM

quote:
Originally posted by SpunkyLoveMuff
quote:
Originally posted by Burnett1
cheer :D legend :D

Who gave the code first? A thanks would be nice ;)

quote:
Originally posted by Jarrod
read script info.xml
you got your credit

correct.....plus there was a mistake i had to correct to make it work...hence i took 3rd coding credits :P
RE: Who Can Make Me ... by roflmao456 on 10-09-2008 at 09:52 PM

* roflmao456 bumps in..
* roflmao456 looks at regexp

JScript code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
    return Message.replace(/\b(\w)/g, function($1){return $1.toUpperCase()});
    }

* roflmao456 runs
:P

although, it breaks the ^o) emoticon so i guess the previous script can do
RE: RE: Who Can Make Me ... by djdannyp on 10-09-2008 at 10:14 PM

quote:
Originally posted by roflmao456
* roflmao456 bumps in..

* roflmao456 looks at regexp

JScript code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
    return Message.replace(/\b(\w)/g, function($1){return $1.toUpperCase()});
    }

* roflmao456 runs

:P

although, it breaks the ^o) emoticon so i guess the previous script can do

lol....just proves that shorter doesn't necessarily mean better

* djdannyp waits for the innuendo police to arrive