It is currently June 17th, 2019, 3:38 am

CPU and GPU names with HWiNFO

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

CPU and GPU names with HWiNFO

rcurrier » May 27th, 2016, 6:48 am

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: 200
Joined: May 16th, 2012, 5:38 am

Re: CPU and GPU names with HWiNFO

Bekarfel » May 27th, 2016, 7:29 am

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.
moshi wrote:there are many Rainmeter skins that aren't really useful, so let's add another one.
jsmorley wrote:I have good news and bad news.
First the bad news. [...] We would be happy to have this happen and would love to work with anyone who is feeling ambitious.
Now the good news.
I lied, there isn't any good news...
User avatar
fonpaolo
Moderator
Posts: 1351
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: CPU and GPU names with HWiNFO

fonpaolo » May 27th, 2016, 11:27 am

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

rcurrier » May 27th, 2016, 5:21 pm

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: 1351
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: CPU and GPU names with HWiNFO

fonpaolo » May 27th, 2016, 6:31 pm

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: 582
Joined: May 7th, 2016, 7:32 am

Re: CPU and GPU names with HWiNFO

Mor3bane » May 27th, 2016, 7:04 pm

@fanpaolo

lo and behold! t'was useful in the most :thumbup:
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself
LxixSxA
Posts: 6
Joined: January 15th, 2018, 1:18 am

Re: CPU and GPU names with HWiNFO

LxixSxA » January 15th, 2018, 1:28 am

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

Re: CPU and GPU names with HWiNFO

jsmorley » January 15th, 2018, 1:38 am

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

LxixSxA » January 15th, 2018, 1:52 am


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

Re: CPU and GPU names with HWiNFO

jsmorley » January 15th, 2018, 1:53 am

Glad to help.