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

Sleeping
Author: Message:
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
RE: Sleeping
Why not make the TimerId the chat window handle in your AddTimer call?
code:
MsgPlus.AddTimer(oChatWnd.Handle,5000);
Then in your timer event you could just enumerate the opened chat windows to find the one which has a handle that matches the TimerID:
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
        }
    }
}

Something like that should work...
;p

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
09-05-2008 11:15 PM
Profile 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