• Welcome to Valhalla Legends Archive.
 

[VB6] GTC Systray Uptime!

Started by Joe[x86], September 22, 2005, 08:37 PM

Previous topic - Next topic

Joe[x86]

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!
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

l2k-Shadow

#1
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
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

Soul Taker

GTC sucks for tracking uptime... unless you reboot constantly.

Joe[x86]

Hows that? Is there any other way?
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.