What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Sleeping

Sleeping
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Sleeping
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);
}
09-07-2008 05:29 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Sleeping - by Zero on 09-05-2008 at 04:29 PM
RE: Sleeping - by matty on 09-05-2008 at 05:23 PM
RE: Sleeping - by Zero on 09-05-2008 at 10:37 PM
RE: Sleeping - by pollolibredegrasa on 09-05-2008 at 11:15 PM
RE: Sleeping - by matty on 09-07-2008 at 05:29 AM
RE: Sleeping - by Zero on 09-08-2008 at 03:38 PM


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