Hey. I have this code. It adds a status bar that says my cpu load in a percent, then displays a progressbar which shows the same. I notice that the number and the possition of the progress bar are not in sync. In fact, sometimes the number will move 3 or 4 secods before the bar. I dont believe it's my computer, considering my normal load when running 3 or 4 apps is 5%. Could you tell me why it's so slow? Also, where can I get a dll to tell the temperature of the cpu, and processor fan speeds? I need to know what a reasonable interval for the timer on my cpuload alias to get an accurate and up-to-date reading, but not cause mIRC or my computer to slow down? Becasue ive noticed mIRC slowing down after I added this alias. An answer to any or my many questions is much appreciated.
alias statusbar {
if ($1 == -c) { dll dll/hOS/hos.dll RemStatusBar }
else {
dll dll/hos/hOS.dll AddStatusBar sizegrip noxptheme
dll dll/hos/hOS.dll SBSetPanels 110 220 -1
dll dll/hos/hOS.dll AddProgressBar 2 smooth
dll dll/hos/hOS.dll SBCreateIconList small
dll dll/hos/hOS.dll SBAddIcon cpuload.ico
.timercpu 0 10 cpuload
}
}
alias cpuload {
dll dll/hos/hOS.dll SBSetData 1 +n 1 CPU Load: $chr(160) $de(cpuload)
%cpuload = $remove($de(cpuload),$chr(37))
while (%cpuload <= 100) {
dll dll/hos/hOS.dll PBSetPos 2 %cpuload 0 100
halt
}
}
Thanks,
Austin Hammer