It is currently March 28th, 2024, 4:31 pm

CPU and GPU names with HWiNFO

Get help with creating, editing & fixing problems with skins
rcurrier
Posts: 6
Joined: May 27th, 2016, 6:34 am

CPU and GPU names with HWiNFO

Post by rcurrier »

I'm new at this and am trying to get the CPU chipset (Intel Core i7-4790 in my case) and video chipset (NVIDIA GeForce GTX 750 Ti) using HWiNFO but there doesn't seem to be an ID for those. HWiNFO obviously knows these. Is HWiNFO not the correct plugin to use? If so, what should I be using instead. SysInfo was my other guess but that doesn't seem to be correct either. Sorry if this is a dumb question or previously asked/answered, I searched the forums but couldn't find anything appropriate. Thanks.
Bekarfel
Posts: 217
Joined: May 16th, 2012, 5:38 am

Re: CPU and GPU names with HWiNFO

Post by Bekarfel »

Please see this: http://www.hwinfo.com/forum/Thread-Rainmeter-plug-in-for-HWiNFO-2-0 thread for instructions on how to use sensor IDs to obtain the sensor names. It is compatible with HWiNFO Plugin 3.0. The TL;DR is about half way down the post, starting at Code:. Note you do not need to provide all of the values indicated in the thread to obtain the sensor's name, the required values are explained underneath the HWiNFO Shared Memory Values example.
If you still have difficulty, or are getting a result that you don't expect, please post back here with the skin you are using and a screenshot of your HWiNFO SMV values, and we can take a look at what you've got.
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy
Contact:

Re: CPU and GPU names with HWiNFO

Post by fonpaolo »

I don't know if you want to obtain these information only from HWiNFO or, maybe, you accept suggestions.

Code: Select all

[MeasureCPUName]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=HARDWARE\DESCRIPTION\System\CentralProcessor\0
RegValue=ProcessorNameString
RegExpSubstitute=1
Substitute="^(.*) @.*$":"\1","    ":" ","   ":" ","  ":" "

[MeasureCPUID]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=HARDWARE\DESCRIPTION\System\CentralProcessor\0
RegValue=Identifier

[MeasureVideoManufacturer]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SYSTEM\[MeasureVideoPath]
RegValue=Device Description

[MeasureVideoMemory]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SYSTEM\[MeasureVideoPath]
RegValue=HardwareInformation.MemorySize
I added some more informations, this doesn't need other programs other than Rainmeter, to obtain, in order:
- CPU, name;
- CPU, family/model;
- Video card, name;
- Video card,installed memory.
rcurrier
Posts: 6
Joined: May 27th, 2016, 6:34 am

Re: CPU and GPU names with HWiNFO

Post by rcurrier »

Thanks to you both. I'm using the HWiNFO for the CPU ID and Registry for the Video card (because I'm too lazy right now to code up a RegEx to strip the "GPU(0):" from the name returned by HWiNFO).

Code: Select all

[GPU_NAME]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinSat
RegValue=PrimaryAdapterString
I'm making some changes to existing skins (Information Overload and Genteel) to better suit my needs. I'll package them all up (giving credit where due) and post to DeviantArt once I'm done in case anyone else would like them.

Again, thanks for the quick responses. Seems like a great community here.
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy
Contact:

Re: CPU and GPU names with HWiNFO

Post by fonpaolo »

You're welcome, rcurrier. :D

Glad to help, when I can.
...and yes, here you'll find (almost, if not all) the help you need, there's always someone who can help.

As a side note, you can get rid of (R) and (TM) using this substitute variant:

Code: Select all

Substitute="^(.*) @.*$":"\1","    ":" ","   ":" ","  ":" ","\(R\)":"","\(TM\)":""
I tested these measures with various systems, only some old hardware, mostly using Windows XP, can give some trouble with video card name and mostly with video card memory.

I say this, in case someone can find this useful.
User avatar
Mor3bane
Posts: 943
Joined: May 7th, 2016, 7:32 am
Contact:

Re: CPU and GPU names with HWiNFO

Post by Mor3bane »

@fanpaolo

lo and behold! t'was useful in the most :thumbup:
LxixSxA
Posts: 6
Joined: January 15th, 2018, 1:18 am

Re: CPU and GPU names with HWiNFO

Post by LxixSxA »

i have CPU [#0]: AMD FX-9800P, is there any idea how to get rid that CPU [#0] ?
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: CPU and GPU names with HWiNFO

Post by jsmorley »

LxixSxA wrote:i have CPU [#0]: AMD FX-9800P, is there any idea how to get rid that CPU [#0] ?
Just add:

Code: Select all

RegExpSubstitute=1
Substitute="^.*: (.*)$":"\1"
To the measure returning that.

https://docs.rainmeter.net/manual/measures/general-options/substitute/#RegExpSubstitute
https://docs.rainmeter.net/manual/measures/general-options/substitute/#Substitute

https://docs.rainmeter.net/manual/skins/option-types/#RegExp
LxixSxA
Posts: 6
Joined: January 15th, 2018, 1:18 am

Re: CPU and GPU names with HWiNFO

Post by LxixSxA »


Awesome !! thanks for the quick responses, it really helps
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: CPU and GPU names with HWiNFO

Post by jsmorley »

Glad to help.
Post Reply