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

online time script
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: online time script
Myself I would do something like this:

code:
var time_counter;

function OnEvent_Signin(sEmail){ MsgPlus.AddTimer('uptime',10000); }

function OnEvent_Timer(sTimerId){
    if (sTimerId == 'uptime') {   
        time_counter = time_counter + 10;

        var days = time_counter / (24 * 3600);
        if (days > 0){ timer_counter = timer_counter - (24*3600*days); }
        var hours = timer_counter / 3600;
        if (hours > 0){ timer_counter = timer_counter - (3600*hours); }
        var minutes = timer_counter / 60;
        Messenger.MyPersonalMessage = 'Online Time: ' + days + ':' + hours + ':' + minutes;
        Debug.Trace(Messenger.MyPersonalMessage);
        MsgPlus.AddTimer(sTimerId,10000);
    }
}

Might work now I fixed a small part of the code.

This post was edited on 08-12-2006 at 08:43 PM by matty.
08-12-2006 07:03 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
online time script - by stuartbennett on 08-12-2006 at 03:21 PM
RE: online time script - by Chris4 on 08-12-2006 at 03:32 PM
RE: online time script - by stuartbennett on 08-12-2006 at 05:15 PM
RE: online time script - by matty on 08-12-2006 at 05:20 PM
RE: online time script - by CookieRevised on 08-12-2006 at 05:29 PM
RE: online time script - by stuartbennett on 08-12-2006 at 06:31 PM
RE: online time script - by matty on 08-12-2006 at 07:03 PM
RE: online time script - by stuartbennett on 08-12-2006 at 07:42 PM
RE: online time script - by matty on 08-12-2006 at 07:58 PM
RE: online time script - by stuartbennett on 08-12-2006 at 08:18 PM
RE: online time script - by matty on 08-12-2006 at 08:42 PM
RE: online time script - by stuartbennett on 08-12-2006 at 09:01 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