Sign in to follow this  
Followers 0
jinyue115

How to get the value of Window Experience Index using AutoIT?

6 posts in this topic

How to get the value of Window Experience Index using AutoIT?

Pls view the attachments below .

The Windows Experience index is 1.0

I want to do "if index >3.0 then ..." but i dont know how to get the value .

Thanks for reading.

post-55711-12807317734344_thumb.jpg

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

How to get the value of Window Experience Index using AutoIT?

Pls view the attachments below .

The Windows Experience index is 1.0

I want to do "if index >3.0 then ..." but i dont know how to get the value .

Thanks for reading.

post-55711-12807317734344_thumb.jpg

The individual and cumulative datascores of the WEI is stored here in XML format.

%systemroot%\Windows\Performance\WinSAT\DataStore\

If u can fileopen it and fileread the contents till a particular parameter is met (in this case the WEI) and then store it in a variable , u can use that varible in your "if ... else " staments.

its a xml file so it wont be difficult to get the data between the

<WinSPR>

<SystemScore> p </SystemScore>

<MemoryScore> q </MemoryScore>

<CpuScore> r </CpuScore>

<CPUSubAggScore> s </CPUSubAggScore>

<VideoEncodeScore> t </VideoEncodeScore>

<GraphicsScore> u </GraphicsScore>

<GamingScore> v </GamingScore>

<DiskScore> w </DiskScore>

.

.

.

.

</WinSPR>

That will be around the 13th line of the xml file i guess.

Hope this helps. :blink:

Edited by DarkAngel

Share this post


Link to post
Share on other sites

Thank you !

Share this post


Link to post
Share on other sites

Is there got any easy ways to check that value ?

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Is there got any easy ways to check that value ?

Here is another way...not necessarily easier. All depends on how good your WMI -> AutoIt skillz are.

strComputer = "." 
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") 
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Win32_WinSAT",,48) 
For Each objItem in colItems 
Wscript.Echo "Win32_WinSAT instance"
Wscript.Echo "-----------------------------------"
Wscript.Echo "CPUScore: " & objItem.CPUScore
Wscript.Echo "D3DScore: " & objItem.D3DScore
Wscript.Echo "DiskScore: " & objItem.DiskScore
Wscript.Echo "GraphicsScore: " & objItem.GraphicsScore
Wscript.Echo "MemoryScore: " & objItem.MemoryScore
Wscript.Echo "TimeTaken: " & objItem.TimeTaken
Wscript.Echo "WinSATAssessmentState: " & objItem.WinSATAssessmentState
Wscript.Echo "WinSPRLevel: " & objItem.WinSPRLevel
Next

Hope this helps,

-Mike

Edited by mdwerne

Share this post


Link to post
Share on other sites

Here is another way...not necessarily easier. All depends on how good your WMI -> AutoIt skillz are.

strComputer = "." 
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") 
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Win32_WinSAT",,48) 
For Each objItem in colItems 
Wscript.Echo "Win32_WinSAT instance"
Wscript.Echo "-----------------------------------"
Wscript.Echo "CPUScore: " & objItem.CPUScore
Wscript.Echo "D3DScore: " & objItem.D3DScore
Wscript.Echo "DiskScore: " & objItem.DiskScore
Wscript.Echo "GraphicsScore: " & objItem.GraphicsScore
Wscript.Echo "MemoryScore: " & objItem.MemoryScore
Wscript.Echo "TimeTaken: " & objItem.TimeTaken
Wscript.Echo "WinSATAssessmentState: " & objItem.WinSATAssessmentState
Wscript.Echo "WinSPRLevel: " & objItem.WinSPRLevel
Next

Hope this helps,

-Mike

Thank you !

Will study these codes.

Share this post


Link to post
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
Sign in to follow this  
Followers 0