Valhalla Legends Forums Archive | Visual Basic Programming | [VB6] GTC Systray Uptime!

AuthorMessageTime
JoeTheOdd
http://www.javaop.com/~joe/VB6/SystrayUptime.zip
Source and binary included.

This does some nifty little API calls and makes a tray icon. It displays the system uptime (now "System uptime: 4 days, 1 hour, and 40 minutes") to minute precision as the toopltip. I had it to milisecond precision, but when you moused over it, it was gone before you had the chance to look at the tooltip (it deletes+remakes). Anyhow, it updates every 30,000 miliseconds (30s).

Its a set it and forget it program. No message boxes, no ugly form (shown =p). Stick it in your startup folder and enjoy!
September 23, 2005, 1:37 AM
l2k-Shadow
Try using CreateWindow, SetTimer, and KillTimer functions. They will greatly increase the efficiency of the program and you don't even need to use a vb-created form  :o
September 23, 2005, 3:10 AM
Soul Taker
GTC sucks for tracking uptime... unless you reboot constantly.
September 23, 2005, 4:36 PM
JoeTheOdd
Hows that? Is there any other way?
September 23, 2005, 11:58 PM
UserLoser.
[quote author=Joe link=topic=12882.msg129128#msg129128 date=1127519905]
Hows that? Is there any other way?
[/quote]

Yeah, QueryPerformanceCounter and QueryPerformanceFrequency
September 24, 2005, 1:24 AM

Search