Is there a way to make AutoIT check the speed of the processor? [excluding the power saving feature]
I want it to edit a settings file & put in the speed.
thanks
Page 1 of 1
AutoIT: Detect Processor Speed
#2
Posted 11 November 2008 - 07:45 PM
I search my registry for process speed info. It is located in :
Windows Registry Editor Version 5.00
;this is 2GHz CPU
[HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0]
"~MHz"=dword:000007cf
(Not sure if this is a standard location or custom location. My OS is XP Sp3)
U can try using RegRead function
Hope that helps
Windows Registry Editor Version 5.00
;this is 2GHz CPU
[HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0]
"~MHz"=dword:000007cf
(Not sure if this is a standard location or custom location. My OS is XP Sp3)
U can try using RegRead function
Hope that helps
This post has been edited by Geej: 11 November 2008 - 07:47 PM
#3
Posted 11 November 2008 - 07:59 PM
not AutoIt but gives info to find processor info: http://support.microsoft.com/kb/888282
#4
Posted 12 November 2008 - 07:13 AM
$CPUSpeed = RegRead("HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\0", "~MHz")
#include <File.au3>
; Create CPUSpeed.ini file
$IniFilePath = @ScriptDir & "\CPUSpeed.ini"
_FileCreate($IniFilePath)
; Write ini section
IniWriteSection($IniFilePath, "CPUSpeed", "")
; Write key and value
IniWrite($IniFilePath, "CPUSpeed", "MHz", $CPUSpeed)
#5
Posted 14 November 2008 - 10:58 PM
Thanks, I will see about installing the code into the app.
Share this topic:
Page 1 of 1



Help
Back to top









