What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [request] Flashing Keyboard LED's when message received

Pages: (10): « First « 1 [ 2 ] 3 4 5 6 » Last »
[request] Flashing Keyboard LED's when message received
Author: Message:
Silentdragon
Full Member
***

Avatar
if(life==null && wrists) EmoAlert();

Posts: 148
Reputation: 2
34 / Male / –
Joined: Jun 2006
RE: [request] Flashing Keyboard LED's when message received
code:
function OnEvent_ChatWndEditKeyDown(Wnd, key){
if(key != Vk_scroll)
    MsgPlus.CancelTimer('check');
}
Wouldn't that work

This post was edited on 06-28-2006 at 12:51 AM by Silentdragon.
06-28-2006 12:49 AM
Profile E-Mail PM Web Find Quote Report
novolo
Junior Member
**

Avatar
L2Luna GM

Posts: 67
– / Male / Flag
Joined: May 2006
RE: [request] Flashing Keyboard LED's when message received
GREAT SCRIPT!  ALREADY USING IT! 
[Image: signature-user=247&back=4&clr=255,255,255&size=80.png][Image: novolo.gif]
06-28-2006 02:08 AM
Profile PM Web Find Quote Report
Apola Silverstone
Junior Member
**


Posts: 33
33 / Other / –
Joined: Jun 2006
RE: [request] Flashing Keyboard LED's when message received
Umm... my scroll light flashed, but can you explain to me exactly when, and how the light flashes? with all the stuff that got changed, it would be nice to be told how it works again... Thanks :)
06-28-2006 02:15 AM
Profile E-Mail PM Find Quote Report
novolo
Junior Member
**

Avatar
L2Luna GM

Posts: 67
– / Male / Flag
Joined: May 2006
RE: [request] Flashing Keyboard LED's when message received
FOR WHAT I CAN SEE,  IT STARTS FLASHING WHEN A NEW CONVERSATION IS CREATED,   FOR EXAMPLE WHEN SOMEONE SEND YOU A MESSAGE FOR THE FIRST TIME,   THEN  WHEN YOU START typing it stops blinking,   and then when you close it it turns off...
i think its like that..



PS: sorry for the caps :P
[Image: signature-user=247&back=4&clr=255,255,255&size=80.png][Image: novolo.gif]
06-28-2006 02:19 AM
Profile PM Web Find Quote Report
Apola Silverstone
Junior Member
**


Posts: 33
33 / Other / –
Joined: Jun 2006
RE: [request] Flashing Keyboard LED's when message received
ok, isthere any way to make it blink when ever the concact sends a messege? just like the task bar blinking when it comes? that way i don't have to be worriued i missing anything if i can't see task bar, and the chat window is already open
06-28-2006 02:21 AM
Profile E-Mail PM Find Quote Report
novolo
Junior Member
**

Avatar
L2Luna GM

Posts: 67
– / Male / Flag
Joined: May 2006
RE: [request] Flashing Keyboard LED's when message received
thats exactly what i was going to ask...      is there annother "event" other than OnEvent_ChatWndCreated(),  like,   new message or something like that?
[Image: signature-user=247&back=4&clr=255,255,255&size=80.png][Image: novolo.gif]
06-28-2006 02:33 AM
Profile PM Web Find Quote Report
Silentdragon
Full Member
***

Avatar
if(life==null && wrists) EmoAlert();

Posts: 148
Reputation: 2
34 / Male / –
Joined: Jun 2006
RE: [request] Flashing Keyboard LED's when message received
code:
//WML Flash 1.0 for MPL! (Smilie) by ivan300@yahoo.com
// slightly modified by djcarre@gmail.com

var VK_num = 144
var VK_scroll = 145
var VK_caps = 20
var KEYEVENTF_KEYUP = '&H2'
var count = 0

function OnEvent_Initialize(bMessengerStart){
}

function OnEvent_Uninitialize(bMessengerExit){
}

//when a chat window is created it starts a timer
function OnEvent_ChatWndCreated(){
MsgPlus.AddTimer('check', 200);
}
function OnEvent_ChatWndReceiveMessage(Wnd, Origin,Message,MessageKind){
if(Origin != Messenger.MyName)
MsgPlus.AddTimer('check',200);
return Message;
}
//when the chat window is closed it stops the timers and turns the light off
function OnEvent_ChatWndDestroyed(){
MsgPlus.CancelTimer('check');
MsgPlus.CancelTimer('check2');
}

//stops the blining when you type into the convo
//make sure to change VK_scroll accordingly if youre using a different led
function OnEvent_ChatWndEditKeyDown(Wnd, key){
if(key != VK_scroll){
    MsgPlus.CancelTimer('check');
    MsgPlus.CancelTimer('check2');
}
}

//to change which light you want to blink change the
// Vk_scroll to VK_num for num lock or VK_caps for caps lock

//this turns the light off and on depending on the timers
function OnEvent_Timer(sTimerId){
if(sTimerId == 'check'){
Debug.Trace('check');
Interop.Call('user32', 'keybd_event', VK_scroll, 0, 0, 0);
Interop.Call('user32', 'keybd_event', VK_scroll, 0, 2, 0);
MsgPlus.AddTimer('check2', 100);
}
if(sTimerId == 'check2'){
Debug.Trace('check2')
Interop.Call('user32', 'keybd_event', VK_scroll, 0, 0, 0);
Interop.Call('user32', 'keybd_event', VK_scroll, 0, 2, 0);
MsgPlus.AddTimer('check', 100);
}
}

This post was edited on 06-28-2006 at 02:37 AM by Silentdragon.
06-28-2006 02:37 AM
Profile E-Mail PM Web Find Quote Report
Apola Silverstone
Junior Member
**


Posts: 33
33 / Other / –
Joined: Jun 2006
RE: [request] Flashing Keyboard LED's when message received
thanks a million (haven't tried it yet but good feelings)
trested, this is great!! Good job guys, please post this in the script db

This post was edited on 06-28-2006 at 02:41 AM by Apola Silverstone.
06-28-2006 02:38 AM
Profile E-Mail PM Find Quote Report
novolo
Junior Member
**

Avatar
L2Luna GM

Posts: 67
– / Male / Flag
Joined: May 2006
RE: [request] Flashing Keyboard LED's when message received
hey, one other question..  how do i verify that a message comes from a certain email?

i mean,  i can verify if it comes from a certain nickname by doing:  if (Origin == nickname),  but what if i want to verify the email...

i'm thinking of doing this to make the led blink only for certain people...   

[Image: signature-user=247&back=4&clr=255,255,255&size=80.png][Image: novolo.gif]
06-28-2006 02:59 AM
Profile PM Web Find Quote Report
Silentdragon
Full Member
***

Avatar
if(life==null && wrists) EmoAlert();

Posts: 148
Reputation: 2
34 / Male / –
Joined: Jun 2006
RE: [request] Flashing Keyboard LED's when message received
code:
//WML Flash 1.0 for MPL! (Smilie) by ivan300@yahoo.com
// slightly modified by djcarre@gmail.com

var VK_num = 144
var VK_scroll = 145
var VK_caps = 20
var KEYEVENTF_KEYUP = '&H2'
var count = 0

function OnEvent_Initialize(bMessengerStart){
}

function OnEvent_Uninitialize(bMessengerExit){
}

//when a chat window is created it starts a timer
function OnEvent_ChatWndCreated(){
    MsgPlus.AddTimer('check', 200);
}
function OnEvent_ChatWndReceiveMessage(Wnd, Origin,Message,MessageKind){
    var contacts = new Enumerator(Wnd.Contacts);
    for (; !contacts.atEnd(); contacts.moveNext())
    {
        var contact = contacts.item();
        switch(contact){
            case 'someemail@hotmail.com' :
            case 'someemail2@hotmail.com' :
                MsgPlus.AddTimer('check',200);
                break;
        }
    }
    if(Origin != Messenger.MyName)
        MsgPlus.AddTimer('check',200);
    return Message;
}
//when the chat window is closed it stops the timers and turns the light off
function OnEvent_ChatWndDestroyed(){
    MsgPlus.CancelTimer('check');
    MsgPlus.CancelTimer('check2');
}

//stops the blining when you type into the convo
//make sure to change VK_scroll accordingly if youre using a different led
function OnEvent_ChatWndEditKeyDown(Wnd, key){
    if(key != VK_scroll){
        MsgPlus.CancelTimer('check');
        MsgPlus.CancelTimer('check2');
    }
}

//to change which light you want to blink change the
// Vk_scroll to VK_num for num lock or VK_caps for caps lock

//this turns the light off and on depending on the timers
function OnEvent_Timer(sTimerId){
    if(sTimerId == 'check'){
        Debug.Trace('check');
        Interop.Call('user32', 'keybd_event', VK_scroll, 0, 0, 0);
        Interop.Call('user32', 'keybd_event', VK_scroll, 0, 2, 0);
        MsgPlus.AddTimer('check2', 100);
    }
    if(sTimerId == 'check2'){
        Debug.Trace('check2')
        Interop.Call('user32', 'keybd_event', VK_scroll, 0, 0, 0);
        Interop.Call('user32', 'keybd_event', VK_scroll, 0, 2, 0);
        MsgPlus.AddTimer('check', 100);
    }
}

Haven't tested but should work.
06-28-2006 03:14 AM
Profile E-Mail PM Web Find Quote Report
Pages: (10): « First « 1 [ 2 ] 3 4 5 6 » 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