quote:
Originally posted by pollolibredegrasa
code:
function OnEvent_Timer(sTimerId){
var e = new Enumerator(Messenger.CurrentChats);
for(; !e.atEnd(); e.moveNext()){
var ChatWindow = e.item();
if (ChatWindow.Handle == sTimerId){
//Do whatever here
}
}
}
You don't even need to do that... if you do what I said and what you said about using the timer as a param you can simply do the following:
code:
function OnEvent_Timer(sTimerId) {
Debug.Trace(oChatWnds[paraseInt(sTimerId)].Handle);
}