Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1625

Help: Rainmeter Skins • Re: Windows Registry

$
0
0
Using PowerShell to fetch only the CPU name is horrifically inefficient. It is much simpler and massively faster to just get this from the registry like you did for the GPU and other things.

Replace your [CPUName] measure with this:

Code:

[CPUName]Measure=RegistryRegHKey=HKEY_LOCAL_MACHINERegKey=HARDWARE\DESCRIPTION\System\CentralProcessor\0RegValue=ProcessorNameStringUpdateDivider=-1IfMatch=AMDIfMatchAction=[!SetOption LogoAMD_P Text "[\xe8A2]"][Redraw]IfMatch2=IntelIfMatchAction2=[!SetOption LogoIntel Text "[\xE8F1]"][Redraw]
Don't forget to remove the !CommandMeasure bang that references this; it is no longer needed.

Statistics: Posted by SilverAzide — Today, 6:31 pm



Viewing all articles
Browse latest Browse all 1625

Trending Articles