Jump to content

Getting info from CoreTemp


Recommended Posts

I've built a dedicated HTPC and I use AutoIT scripts to keep everything running smoothly so it works like a PVR not a PC. I've run into a bit of a block though.

I want to be able to monitor CPU temperatures but on all the PCs I've tried, the usual ACPI methods - there are some code examples on this board - don't work.

On the other hand, CoreTemp does this by pulling the data off a CPU register and can output to a log file which I could capture - but how much elegant to grab the data from memory, and CoreTemp's developers expose how to do this here: http://www.alcpu.com/CoreTemp/developers.html

That's fine if you're a programmer, or have days to figure out how to do this. I'm not and I don't. All the info is there and someone with a bit of real programming experience could probably figure it out in minutes. Has anyone else managed to do this - or feel inclined to help a fellow AutoITer?

Many thanks.

Edited by liteswap
Link to comment
Share on other sites

Hi,

I had a look and the structure looks easy enough to to do..

So I created the struct, then get a pointer to the struct..

Then I call the function in the dll passing it the pointer..

the call always returns 0 (False) and doesn't fill the struct.

So I use WinApi to get the last error and getlast error returns 0

So autoit doesn't error in calling the dll.. the dll just fails to get the shared memory and doesn't give an error code.

I must be missing something

Maybe I'll try the x64 version of the dll in win7 ( tried it in xp x86)

Edit: Slapping my forehead..

Found out why it didn't work, user stupidity and coretemp won't work on an old centrino cpu (my laptop) ..lmao

Yep it works >_<

Cheers for the link to the dll..

I'll play with it some more and post some code later.

Edited by smashly
Link to comment
Share on other sites

Hi,

I had a look and the structure looks easy enough to to do..

So I created the struct, then get a pointer to the struct..

Then I call the function in the dll passing it the pointer..

the call always returns 0 (False) and doesn't fill the struct.

So I use WinApi to get the last error and getlast error returns 0

So autoit doesn't error in calling the dll.. the dll just fails to get the shared memory and doesn't give an error code.

I must be missing something

Maybe I'll try the x64 version of the dll in win7 ( tried it in xp x86)

Edit: Slapping my forehead..

Found out why it didn't work, user stupidity and coretemp won't work on an old centrino cpu (my laptop) ..lmao

Yep it works >_<

Cheers for the link to the dll..

I'll play with it some more and post some code later.

Many thanks! I look forward to seeing your efforts.
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...