What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Auto-flipping sentences/characters

[Request] Auto-flipping sentences/characters
Author: Message:
MoonGoose
Junior Member
**

Avatar

Posts: 16
– / Male / –
Joined: Oct 2006
O.P. [Request] Auto-flipping sentences/characters
I found this nice site, they flipped all characters by writing p instead of d and such, because not all letters were able to be flipped they used the Windows's Character Map application to find letters.

I would like a script that automatically flipped the sentences after I wrote them.
http://pne.livejournal.com/398399.html?page=1#comments that's the site I'm talking about. Also I found http://www.revfad.com/flip.html this which does exactly what i want, but i want it integrated into wlm.
07-23-2007 08:45 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: [Request] Auto-flipping sentences/characters
i just copied the source code ((6))

so just make a new script and paste this code in :P


code:
function OnEvent_ChatWndSendMessage(Chatwnd,Message){
return flipString(Message.toLowerCase());
}

function flipString(aString) {
var last = aString.length - 1;
//Thanks to Brook Monroe for the
//suggestion to use Array.join
var result = new Array(aString.length)
for (var i = last; i >= 0; --i) {
  var c = aString.charAt(i)
  var r = flipTable[c]
  result[last - i] = r != undefined ? r : c
}
return result.join('')
}

var flipTable = {
a : '\u0250',
b : 'q',
c : '\u0254', //open o -- from pne
d : 'p',
e : '\u01DD',
f : '\u025F', //from pne
g : '\u0183',
h : '\u0265',
i : '\u0131', //from pne
j : '\u027E',
k : '\u029E',
//l : '\u0283',
m : '\u026F',
n : 'u',
r : '\u0279',
t : '\u0287',
v : '\u028C',
w : '\u028D',
y : '\u028E',
'.' : '\u02D9',
'[' : ']',
'(' : ')',
'{' : '}',
'?' : '\u00BF', //from pne
'!' : '\u00A1',
"\'" : ',',
'<' : '>',
'_' : '\u203E',
'\\' : '/',
';' : '\u061B',
'\u203F' : '\u2040',
'\u2045' : '\u2046',
'\u2234' : '\u2235'
}

for (i in flipTable) {
  flipTable[flipTable[i]] = i
}

have fun :p (it works, tested.)

edit: lol, corrected the lightbulb thing :dodgy:

This post was edited on 07-24-2007 at 12:07 AM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
07-23-2007 10:24 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