mIRC Home    About    Download    Register    News    Help

Print Thread
#121851 02/06/05 07:32 PM
Joined: Feb 2005
Posts: 194
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
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.

Code:
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


"God sometimes puts us in the dark for us to see the light"
#121852 03/06/05 02:17 AM
Joined: Mar 2004
Posts: 155
D
Vogon poet
Offline
Vogon poet
D
Joined: Mar 2004
Posts: 155
Not sure about your statusbar because I myself haven't gotten around to try making my statusbar since getting involved with a scripting crew but you can use motherboard monitor here

#121853 03/06/05 06:06 PM
Joined: Feb 2005
Posts: 194
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
Thanks bro. smile


"God sometimes puts us in the dark for us to see the light"

Link Copied to Clipboard