What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Case talker

Case talker
Author: Message:
Grinder911
New Member
*


Posts: 5
Joined: Sep 2004
O.P. RE: Case talker
I altered the talker.alternating.vbs and came up with this:

Function talker(input)
    For i = 1 To Len(input)
        keyvalue = Asc(Mid(input, i, 1))
        If (keyvalue >= 96 And keyvalue < 96 + 27) Or (keyvalue >= 64 And keyvalue < 64 + 27) Then
            If (i And 1) = 1 Then
                If keyvalue < 96 Then
                    s = s & Chr(96 + keyvalue - 64)
                Else
                    s = s & Chr(64 + keyvalue - 96)               
                End If
            Else
                If keyvalue >= 96 Then
                    s = s & Chr(64 + keyvalue - 96)
                Else
                    s = s & Chr(96 + keyvalue - 64)
                End If
            End If
    Else
            s = s & Chr(keyvalue)
        End If
    Next
    input = s&""
    talker = input
End Function

Can you see anything I don't need in there?

Then I altered talker.lafrican.js and came up with this:

var inchars="abcdefghijklmnopqrstuvwxyz";
var outchars="ABCDEFGHIJKLMNOPQRSTUVWXYZ";

function talker(input) {
    var i=0;
    var output="";
    while (i<input.length) {
        var letter=input.substr(i,1);
        var upr=0;
        if (letter >= 'a' && letter <= 'z') {
            letter=outchars.charAt(inchars.indexOf(letter));
        }
        else
        if (letter >= 'A' && letter <= 'Z') {
            letter=inchars.charAt(outchars.indexOf(letter));
        }
        output=output+letter;
        i=i+1;
    }
    return output;
}

With the .js one everything works and the .vbs one the @ symbol and ` symbol are switched.

This post was edited on 09-18-2004 at 11:28 PM by Grinder911.
09-18-2004 10:47 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Case talker - by Grinder911 on 09-18-2004 at 08:36 PM
RE: Case talker - by Grinder911 on 09-18-2004 at 08:50 PM
RE: Case talker - by Martijn. on 09-18-2004 at 09:54 PM
RE: Case talker - by Grinder911 on 09-18-2004 at 10:47 PM
RE: Case talker - by Grinder911 on 09-19-2004 at 12:10 AM
RE: Case talker - by CookieRevised on 09-19-2004 at 01:35 AM
RE: Case talker - by Mike on 09-19-2004 at 06:10 AM
RE: Case talker - by CookieRevised on 09-19-2004 at 10:32 AM
RE: Case talker - by CookieRevised on 09-19-2004 at 12:23 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