help with a samurize program (they're vbscript programs)

Discussion in 'Software' started by mr_flea, Jul 18, 2004.

  1. mr_flea

    mr_flea First Sergeant

    Ok, I have a samurize program that measures cpu temp (it's the only temperature measurement program that works on my computer so far), but i don't think it's giving the correct temperature (it just said my computer was 70 degrees celsius). What i want to know is if the conversion it's using is correct. Anyone know?

    Code:
    Function ACPI_CPUTemp()
     	dim r, lu
     	set PFU = GetObject("winmgmts:{impersonationLevel=impersonate}!root\wmi").ExecQuery 
     
     _
     			("SELECT CurrentTemperature FROM MSAcpi_ThermalZoneTemperature")
     	
     	for each U in PFU
     		r = r&U.CurrentTemperature
     	Next
     	
     	' r is tenth of kelvin, convert to °C.
     	ACPI_CPUTemp = (r)
     	
     	set PFU=Nothing
     End Function
     
     
  2. mr_flea

    mr_flea First Sergeant

    hmm... after further inspection, i think the script was right :-/
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds