What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » helping out a newb

helping out a newb
Author: Message:
general sirhc
New Member
*


Posts: 11
Joined: Oct 2007
O.P. helping out a newb
i tried making a script that basicly converts a key press to a different string.
The first idea was to convert your text 70 |-|4(|< (to hacker) so when ever the user presses a letter it changes it to the hacker version a=4 b=8 c=( and so on. ANYWAY making this script was beyond me so i tried to make a script that changed the letter to a different one but this also was too difficult so now i ask my new friends here to help me understand how to do a script like this.

so yeah anyone that can help post an idea or an entire script and help is good help

thanks for answers to come

EDIT: ok
[code]function OnEvent_ChatWndEditKeyDown(ChatWnd,KeyCode,CtrlKeyDown,ShiftKeyDown){
if (Var Convert==on){
if (KeyCode==65){
//65 is a
this bit i'm unsure about but yer um add '4' instead of adding the letter A
}}

This post was edited on 10-18-2007 at 12:07 PM by general sirhc.
10-18-2007 12:01 PM
Profile E-Mail PM Find Quote Report
albert
Veteran Member
*****

Avatar

Posts: 2247
Reputation: 42
– / Male / Flag
Joined: Feb 2005
RE: helping out a newb
Your explanation is very unclear.. Please make it more understandable and show a clear example..
10-18-2007 12:03 PM
Profile E-Mail PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: helping out a newb
I think he wants a 1337 converter to work when he is typig rather than when the message is sent. What you want to do in the area that you are unsure of is use the following code.
code:
ChatWnd.EditText_ReplaceSel("4");//Insert 4 where the caret is (the blinking thig deoting where you are typing)
return true;//Do not let messenger put in the a

You also may want to look at a switch statement rather than many if statements for each key, it will just turn out nicer if you understand how to use them.  This isn't needed but it is an ideal opportunity to give it a go and learn how to do it.

This post was edited on 10-18-2007 at 12:38 PM by markee.
[Image: markee.png]
10-18-2007 12:36 PM
Profile PM Find Quote Report
general sirhc
New Member
*


Posts: 11
Joined: Oct 2007
O.P. RE: helping out a newb
dont worry i learnt how to do switch in another program language and it works just fine in this aswell
AUSSIE AUSSIE AUSSIE....THANKS THANKS THANKS

This post was edited on 10-18-2007 at 01:12 PM by general sirhc.
10-18-2007 12:47 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: helping out a newb
quote:
Originally posted by markee
I think he wants a 1337 converter to work when he is typig rather than when the message is sent.

quote=tylertyler]This might help you:
code:

function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{

Message = Message.replace(/R/gi,'some char');

return Message;
}





He solved it and was thanked; there was no need to post your code really as it doesn't do what he asked anyway
<Eljay> "Problems encountered: shit blew up" :zippy:
10-18-2007 06:22 PM
Profile PM 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