Jfish Posted November 28, 2014 Posted November 28, 2014 (edited) Not sure if anyone else has a better approach but I did some Googling on this. I don't think all PC's support this function. If they do, it looks like you can get at it from the PowerShell. This example will work from the command line and will state the temp in Kelvin (you can convert it) assuming your PC supports the function: wmic /namespace:\\root\wmi PATH MSAcpi_ThermalZoneTemperature get CurrentTemperature That should start you on the right track. Also, take a look at >ScriptOMatic for AutoIt. I did not see this API listed - but then again, it is not supported on my machine :-( This example was to a batch file that converts it to Celsius: @echo off for /f "skip=1 tokens=2 delims==" %%A in ('wmic /namespace:\\root\wmi PATH MSAcpi_ThermalZoneTemperature get CurrentTemperature /value') do set /a "HunDegCel=(%%~A*10)-27315" echo %HunDegCel:~0,-2%.%HunDegCel:~-2% Degrees Celsius Source JFish Edited November 28, 2014 by Jfish Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt
Hidix17 Posted January 11, 2016 Author Posted January 11, 2016 I have no idea why it still shows me 29.85 degrees.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now