liteswap Posted August 10, 2009 Share Posted August 10, 2009 (edited) 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 August 10, 2009 by liteswap Link to comment Share on other sites More sharing options...
smashly Posted August 10, 2009 Share Posted August 10, 2009 (edited) 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 August 10, 2009 by smashly Link to comment Share on other sites More sharing options...
liteswap Posted August 11, 2009 Author Share Posted August 11, 2009 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 0So 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 somethingMaybe 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) ..lmaoYep 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 More sharing options...
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