Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extract info from CPU-Z !!!
#1
I was trying to display some very specific information on my GLCD
such as FSB, Multiplier or RAM timings.

This was easy to do by using the famous CPU-Z utility in ghost
mode with data dumping.

This is how it is done :

First declare the variables of interest

%DefVar(Mult,Local='')
%DefVar(FSB,Local='')

In the HEADER section (runs only once in the beginning, because
these kind of data don't change outside BIOS), the CPU-Z utility is
executed

%System.Execute('C:\Tools\CPU-Z\cpuz.exe','-file=dump',5000)

(change the path according to your system)

The dump.txt file is generated, which contains ALL CPUZ info !!!

Then it is very easy to get them. For example

%Assign(Mult,%String.Copy(%System.ReadFile('C:\Tools\CPU-Z\dump.txt',23),19,3))
%Assign(FSB,%String.Copy(%System.ReadFile('C:\Tools\CPU-Z\dump.txt',24),26,3))

And finally use %Mult() and %FSB() variables to display the requested information !!

Hope you find it useful !
#2
You can try with different execution timeouts (I used the conservative
value of 5 seconds).

Please report back any successful results !
#3
And here are the RAM timings :

%DefVar(CAS,Local='')
%DefVar(RASCAS,Local='')
%DefVar(RAS,Local='')
%DefVar(TRAS,Local='')
%DefVar(TRC,Local='')


%Assign(CAS,%String.Copy(%System.ReadFile('C:\Tools\CPU-Z\dump.txt',103),8,3))
%Assign(RASCAS,%String.Copy(%System.ReadFile('C:\Tools\CPU-Z\dump.txt',104),15,3))
%Assign(RAS,%String.Copy(%System.ReadFile('C:\Tools\CPU-Z\dump.txt',105),17,3))
%Assign(TRAS,%String.Copy(%System.ReadFile('C:\Tools\CPU-Z\dump.txt',106),19,3))
%Assign(TRC,%String.Copy(%System.ReadFile('C:\Tools\CPU-Z\dump.txt',107),23,3))


WORKS GREAT !


Forum Jump:


Users browsing this thread: 1 Guest(s)