# key and = key |
Author: |
Message: |
Jimbo
Veteran Member
Posts: 1650 Reputation: 18
32 / /
Joined: Jul 2006
|
O.P. # key and = key
is it possible to create a script so that whenever i push the "#" key, it sends a message like eg. "lol" to whatever convo is up.
or when i push the "=" key, it sends "hi"
thanks
134jimbodude
|
|
08-23-2006 12:43 PM |
|
|
CookieRevised
Elite Member
Posts: 15517 Reputation: 173
– / /
Joined: Jul 2003
Status: Away
|
RE: # key and = key
Yes, it's possible...
but to make it, some additional info is needed:
When you press the keys, do you want the "lol" and "hi" text to appear in de text in the typing area (so you still need to press enter to send the message you were typing; thus this is just like inserting emoticons)?
Or do you want the message "lol" and "hi" to be send strait away (thus without changing the possible existing text in the typing area; thus much like a hotkey)? And in this case, do you want these "lol" and "hi" messages to be send to only the currently active convo, or to all open convos?
This post was edited on 08-23-2006 at 12:58 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
|
|
08-23-2006 12:50 PM |
|
|
Jimbo
Veteran Member
Posts: 1650 Reputation: 18
32 / /
Joined: Jul 2006
|
O.P. RE: # key and = key
i want it to be sent sraight away if possible please
|
|
08-23-2006 12:52 PM |
|
|
CookieRevised
Elite Member
Posts: 15517 Reputation: 173
– / /
Joined: Jul 2003
Status: Away
|
RE: # key and = key
In that case, do you want these "lol" and "hi" messages to be send to only the currently active convo, or to all open convos?
PS: I can't make the script atm as I don't have Plus! here at work, but with the info provided I'm sure somebody will make it (and if not, I'll provide the script tonight).
This post was edited on 08-23-2006 at 12:59 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
|
|
08-23-2006 12:58 PM |
|
|
Jimbo
Veteran Member
Posts: 1650 Reputation: 18
32 / /
Joined: Jul 2006
|
O.P. RE: # key and = key
only the current active convo please
also can you make the messages "hi" and "lol" variables so i can change them please
thanks
|
|
08-23-2006 12:59 PM |
|
|
Huhu_Manix
Full Member
Upload me again... *salivate*
Posts: 106
– / / –
Joined: Jul 2006
|
RE: # key and = key
Like this :
code: function OnEvent_ChatWndSendMessage(ChatWnd,Message){
Message = Message.replace(/#/gi, "lol");
Message= Message.replace(/=/gi, "hi");
return Message;
}
?
|
|
08-23-2006 02:59 PM |
|
|
Jimbo
Veteran Member
Posts: 1650 Reputation: 18
32 / /
Joined: Jul 2006
|
O.P. RE: # key and = key
erm..
i want it so when i push the "#" i dont have to push enter.
it justs sends "lol" to the active open convo
|
|
08-23-2006 03:01 PM |
|
|
Eljay
Elite Member
:O
Posts: 2949 Reputation: 77
– / / –
Joined: May 2004
|
RE: # key and = key
code: function OnEvent_ChatWndEditKeyDown(ChatWnd, KeyCode){
switch(KeyCode){
case 187:
ChatWnd.SendMessage("hi");
return true;
case 222:
ChatWnd.SendMessage("lol");
return true;
}
}
|
|
08-23-2006 03:10 PM |
|
|
Jimbo
Veteran Member
Posts: 1650 Reputation: 18
32 / /
Joined: Jul 2006
|
O.P. RE: # key and = key
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
|
|
08-23-2006 03:14 PM |
|
|
Huhu_Manix
Full Member
Upload me again... *salivate*
Posts: 106
– / / –
Joined: Jul 2006
|
RE: # key and = key
But for the # you need the ALT GR...
Maybe it's different with QWERTY.
|
|
08-23-2006 03:37 PM |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|