lets hope it doesn't take too long
but still, i'm trying to make ivan300's script work..
EDIT:
GOT IT !!
i'll post it in a couple of minutes.. and i'll start expanding the script with the ability to configure it
EDIT2:
code:
//WML Flash 1.0 for MPL! 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){
//turns off the light when initalised
}
function OnEvent_Uninitialize(bMessengerExit){
}
//when a chat window is created it starts a timer
function OnEvent_ChatWndCreated(){
MsgPlus.AddTimer('check', 200);
}
//when the chat window is closed it stops the timers and turns the light off
function OnEvent_ChatWndDestroyed(){
MsgPlus.CancelTimer('check');
MsgPlus.CancelTimer('check2');
}
//when a message is typed by you the light will turn off
function OnEvent_ChatWndEditKeyDown(){
MsgPlus.CancelTimer('check');
}
//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', 200);
MsgPlus.CancelTimer('check');
}
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', 200);
MsgPlus.CancelTimer('check2');
}
}