Jump to content

VCTemp


FuryCell
 Share

Recommended Posts

VCTemp is an open-source tool that interfaces with CoreTemp to allow you to view the temperatures on a remote machine. This can be useful to keep an eye on processor temperatures of your rig while fullscreen gaming.

Posted Image

VCTemp Site

Hope some people find the tool or code useful. It is my first time dealing with dllstructs.

Also, for people interested in interfacing with CoreTemp in their own scripts here is a link and a snippet of the related code in my app.

http://www.alcpu.com/CoreTemp/developers.html

$DLL = DllOpen("GetCoreTempInfo.dll")
If $DLL=-1 Then
MsgBox(0,"VCTemp:Error",'Failed to open "GetCoreTempInfo.dll". VCTemp will now exit.')
Exit
EndIf
$Struct = DllStructCreate("uint[256];uint[128];uint;uint;float[256];float;float;float;float;char[100];BOOLEAN;BYTE")


Func GetTemps($hDLL, $vStruct)
    Local $sReturn, $cTempFormat, $iCores, $iCounter
    $Ret=DllCall($hDLL, "BOOLEAN", "fnGetCoreTempInfoAlt", "ptr", DllStructGetPtr($vStruct))
    If @Error Then Return ".ERROR."
    If $Ret[0]<>1 Then Return ".NODATA."
    $iCores = DllStructGetData($vStruct, 3)
    Switch DllStructGetData($vStruct, 11)
        Case 1
            $cTempFormat = "F"
        Case 0
            $cTempFormat = "C"
    EndSwitch
    For $iCounter = 1 To $iCores
        $sReturn &= Round(DllStructGetData($vStruct, 5, $iCounter)) & $cTempFormat
        If $iCounter <> $iCores Then $sReturn &= "  "
    Next
    Return $sReturn
EndFunc   ;==>GetTemps
Edited by FuryCell
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Link to comment
Share on other sites

Just got an email after contacting to author of CoreTemp.

He offered to add it to the addons page at the CoreTemp site.

Edited by FuryCell
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...