What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » # key and = key

Pages: (2): « First « 1 [ 2 ] Last »
# key and = key
Author: Message:
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
29 / Male / Flag
Joined: Apr 2006
Status: Away
RE: # key and = key
quote:
Originally posted by 134jimbodude
kool thanks

wot do the case 187 and the case 222 do?

r they the "#" and the "="?

i want to know this so i can add more to the script

thanks
http://javascript.js-x.com/key_codes/ Almost All the KeyCodes Appear to be here :p.

   
quote:
Originally posted by Eljay
code:
function OnEvent_ChatWndEditKeyDown(ChatWnd, KeyCode){
    switch(KeyCode){
    case 187:
    ChatWnd.SendMessage("hi");
    return true;
    case 222:
    ChatWnd.SendMessage("lol");
    return true;
    }
    }

Thanks. It maybe helpful to me some day :tongue:.

This post was edited on 08-23-2006 at 03:46 PM by Felu.
08-23-2006 03:42 PM
Profile E-Mail PM Web Find Quote Report
saralk
Veteran Member
*****

Avatar

Posts: 2598
Reputation: 38
35 / Male / Flag
Joined: Feb 2003
RE: # key and = key
yes it is ############ see ma, no alt!!11

http://www.js-examples.com/page/tutorials__key_codes.html contains a list of key codes if you want to code your own.
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
08-23-2006 03:44 PM
Profile PM Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
31 / Male / Flag
Joined: Jul 2006
O.P. RE: # key and = key
thanks everyone
08-23-2006 03:56 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: # key and = key
quote:
Originally posted by Huhu_Manix
Like this :

code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){
    Message = Message.replace(/#/gi, "lol");
    Message= Message.replace(/=/gi, "hi");
    return Message;
}

?
I especially took the time and asked the questions I asked so people would exactly know what he wanted... please read posts... :dodgy:

quote:
Originally posted by Huhu_Manix
But for the # you need the ALT GR... ^o)

Maybe it's different with QWERTY.
Keycodes, like ascii codes, are always the same. Scancodes depend on keyboard layout.

Ascii codes define the character value (eg: on each and every keyboard you use "A" will always have ascii code 65).

Keycodes define the key value (eg: ctrl is a key, but isn't a character, on each and every keyboard you use the ctrl key will always produce the same keycode).

Scancodes define the position of the key on the keyboard (eg: on every keyboard the second key from the second row will always have the same scancode, but the ascii and keycode for that key can be different depending on keyboard layout)

This post was edited on 08-23-2006 at 08:59 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
08-23-2006 08:42 PM
Profile PM Find Quote Report
MicroWay
Senior Member
****

Avatar
Do you want me? Try to get me!

Posts: 571
Reputation: 16
36 / Male / Flag
Joined: Jul 2006
Status: Away
RE: # key and = key
Sorry with my ignorance, but why don't you use the Plus!'s Quick Texts function...
You can put the "#" to be changed for "lol" for example...

:S
09-04-2006 02:19 PM
Profile PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
35 / Male / Flag
Joined: Jan 2006
RE: # key and = key
because this would mean typing it in and sending the message rather than having what is known as a hot-key which is done on the key being pressed
[Image: markee.png]
09-04-2006 02:22 PM
Profile PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
29 / Male / Flag
Joined: Apr 2006
Status: Away
RE: # key and = key
quote:
Originally posted by MicroWay
Sorry with my ignorance, but why don't you use the Plus!'s Quick Texts function...
You can put the "#" to be changed for "lol" for example...

[Image: msn_confused.gif]
But that is not what is requested... He just want key "#" key is pressed some message it sent. Kinda quick keys instead of quick texts [Image: msn_wink.gif].
09-04-2006 02:23 PM
Profile E-Mail PM Web Find Quote Report
Huhu_Manix
Full Member
***

Avatar
Upload me again... *salivate*

Posts: 106
– / Male / –
Joined: Jul 2006
RE: # key and = key
CookieRevised > For my code, he said "or when i push the "=" key, it sends "hi"", i gave only the code for the sent message. :)

And for le key code, thank i didn't know that.
09-04-2006 07:03 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: # key and = key
quote:
Originally posted by Huhu_Manix
CookieRevised > For my code, he said "or when i push the "=" key, it sends "hi"", i gave only the code for the sent message. :)
Yep, hence why that was not what has been requested... He requested the behaviour of an hotkey, not replacing letters in a message which is send by pressing the send button or pressing enter.

quote:
Originally posted by Huhu_Manix
And for le key code, thank i didn't know that.
you're welcome ;)

This post was edited on 09-04-2006 at 07:19 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
09-04-2006 07:18 PM
Profile PM Find Quote Report
MicroWay
Senior Member
****

Avatar
Do you want me? Try to get me!

Posts: 571
Reputation: 16
36 / Male / Flag
Joined: Jul 2006
Status: Away
RE: # key and = key
Sorry, markee and -!Felu!-
:S

I was thinking other thing, not the Key...
09-06-2006 07:10 PM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« 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