matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: [request] Hotkey /all
code: function OnEvent_ChatWndEditKeydown(oChatWnd, nKeyCode, bCtrlKeyDown, bShiftKeyDown) {
if (nKeyCode == 0x74 && !bCtrlKeyDown && !bShiftKeyDown){
if (oChatWnd.EditChangeAllowed === true){
if (oChatWnd.EditText.indexOf('/all ') === -1){
oChatWnd.EditText = '/all '+oChatWnd.EditText;
}
}
}
}
|
|