What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Visual Basics : Uptime

1 votes - 5 average   Visual Basics : Uptime
Author: Message:
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: Visual Basics : Uptime
quote:
Originally posted by Mnjul
Attachment: UptimeTicker.zip (16.1 KB)
nice :)
quote:
Originally posted by Sk3tch
TotalSecs = Int(GetTickCount / 1000)
    Days = Int(((TotalSecs / 60) / 60) / 24)
    TempSecs = Int(Days * 86400)
    TotalSecs = TotalSecs - TempSecs
    TotalHours = Int((TotalSecs / 60) / 60)
    TempSecs = Int(TotalHours * 3600)
    TotalSecs = TotalSecs - TempSecs
    TotalMins = Int(TotalSecs / 60)
    TempSecs = Int(TotalMins * 60)
    TotalSecs = (TotalSecs - TempSecs)


etc....



:O very complex code, isn't it? :P

what about this:
code:
Dim msecs As Long
Dim secs As Long
Dim mins As Long
Dim hours As Long
Dim days As Long
Dim total As Long
total = GetTickCount()

msecs = total Mod 1000
total = total / 1000

secs = total Mod 60
total = total / 60

mins = total Mod 60
total = total / 60

hours = total Mod 24
total = total / 24

days = total


'etc....

Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
06-24-2004 09:51 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Visual Basics : Uptime - by dotNorma on 06-23-2004 at 09:13 PM
RE: Visual Basics : Uptime - by Choli on 06-23-2004 at 09:34 PM
RE: Visual Basics : Uptime - by dotNorma on 06-23-2004 at 09:46 PM
RE: Visual Basics : Uptime - by Mnjul on 06-24-2004 at 01:06 AM
RE: RE: Visual Basics : Uptime - by Salem on 06-25-2004 at 03:43 PM
RE: Visual Basics : Uptime - by Sk3tch on 06-24-2004 at 02:49 AM
RE: Visual Basics : Uptime - by Choli on 06-24-2004 at 09:51 AM
RE: Visual Basics : Uptime - by dotNorma on 06-25-2004 at 04:00 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