ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: Replacement Power Options applet

<< < (6/9) > >>

f0dder:
np, couldn't sleep anyway - long live insomnia ;)

EDIT: why do you use the loop thing to construct the idletime variable, instead of just doing DllCall("Kernel32.dll\GetSystemTimes", "*UInt64", idletime, "*Uint64", dummy1, "*Uint64", dummy2) and getting it directly?

Carol Haynes:
Right it allows my computer to go to sleep (and hibernate after a couple of hours) - the proof of the pudding will be to see what happens when I load the CPU for a long period - I'll try that tomorrow.

skrommel:
 :) why do you use the loop thing
--- End quote ---

I missed that information in the excitement, f0dder! So you've been reading the AHK manual, have you?

The code isn't mine, I pretty much borrow everyone else's work.

I've posted your findings on the AHK forum. Maybe you should post your final GetCpuLoad code there?

Skrommel

skrommel:
 :tellme: f0dder, was the SetAffinity required?

Skrommel

f0dder:
I'm not sure the SetAffinity() is required - can't remember if GetTickCount() is affected by the TSC weirdness. Heading off to bed, so don't have time for testing either right now :) - don't think it's necessary in this case, though.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version