It is currently April 8th, 2020, 3:46 pm

Tooltip hot-spot

Report bugs with the Rainmeter application and suggest features.
User avatar
jsmorley
Developer
Posts: 20457
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Tooltip hot-spot

Post by jsmorley »

Beuwolf wrote:
March 15th, 2020, 8:39 pm
Hi jsmorley.

Sorry to ask about something else then the topic of the thread. I tried to search but my google skills don't seem to be up to the task.

In this first picture, your tooltip is showing the Windows Version and Build number (I found what to use to have Rainmeter display what OS I have, i.e. Windows 10 but more interested in Version and Build (unless I missed it there?)). Could you be kind and point me in the right direction to find out how to access that information through a Rainmneter command, please ? I know where to get it on the PC, just would like to have it on one of the gadgets instead. :D

Thank you for any and all assistance and sorry once again to slightly derail the thread ! :oops:

Code: Select all

;[GATHER CPU UTILIZATION]=========================

[MeasureCPUAvg]
Measure=Plugin
Plugin=UsageMonitor
Alias=CPU
Index=0

[MeasureCPUSpeed]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=HARDWARE\DESCRIPTION\System\CentralProcessor\0
RegValue=~MHz
UpdateDivider=-1

[MeasureCPUName]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=HARDWARE\DESCRIPTION\System\CentralProcessor\0
RegValue=ProcessorNameString
UpdateDivider=-1

[MeasureProductName]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SOFTWARE\Microsoft\Windows NT\CurrentVersion
RegValue=ProductName
UpdateDivider=-1

[MeasureReleaseID]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SOFTWARE\Microsoft\Windows NT\CurrentVersion
RegValue=ReleaseId
UpdateDivider=-1

[MeasureCurrentBuild]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SOFTWARE\Microsoft\Windows NT\CurrentVersion
RegValue=CurrentBuild
UpdateDivider=-1

[MeasureUBR]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SOFTWARE\Microsoft\Windows NT\CurrentVersion
RegValue=UBR
UpdateDivider=-1

[MeasureWinBits]
Measure=String
String=%ProgramFiles(x86)%
RegExpSubstitute=1
Substitute="^(.+)$":"64","^$":"32"
UpdateDivider=-1
User avatar
Yincognito
Posts: 1152
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Tooltip hot-spot

Post by Yincognito »

Beuwolf wrote:
March 15th, 2020, 8:39 pm
Hi jsmorley.

Sorry to ask about something else then the topic of the thread. I tried to search but my google skills don't seem to be up to the task.

In this first picture, your tooltip is showing the Windows Version and Build number (I found what to use to have Rainmeter display what OS I have, i.e. Windows 10 but more interested in Version and Build (unless I missed it there?)). Could you be kind and point me in the right direction to find out how to access that information through a Rainmneter command, please ? I know where to get it on the PC, just would like to have it on one of the gadgets instead. :D

Thank you for any and all assistance and sorry once again to slightly derail the thread ! :oops:
In addition to the info provided by jsmorley:

Code: Select all

[MS_Registry_CSDVersion]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SOFTWARE\Microsoft\Windows NT\CurrentVersion
RegValue=CSDVersion
UpdateDivider=-1

[MS_Registry_CurrentMajorVersionNumber]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SOFTWARE\Microsoft\Windows NT\CurrentVersion
RegValue=CurrentMajorVersionNumber
UpdateDivider=-1

[MS_Registry_CurrentMinorVersionNumber]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SOFTWARE\Microsoft\Windows NT\CurrentVersion
RegValue=CurrentMinorVersionNumber
UpdateDivider=-1

[MS_Registry_CurrentBuildNumber]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SOFTWARE\Microsoft\Windows NT\CurrentVersion
RegValue=CurrentBuildNumber
UpdateDivider=-1
CSDVersion is where the "service pack ..." used to be for Windows 7 and below (so its own "build number" in words, so to speak), and the entire Windows 10 "build number" is in the form of CurrentMajorVersionNumber.CurrentMinorVersionNumber.CurrentBuildNumber.UBR (leads to something like 10.0.17134.112). Basically, the OS's "build" is either CSDVersion or CurrentMajorVersionNumber.CurrentMinorVersionNumber.CurrentBuildNumber.UBR for any (post Windows NT?) Windows OS.

P.S. Why "CurrentBuildNumber" and not simply "CurrentBuild"? Well, I don't trust the strings that could exist in "non-specific" Windows registry keys. While "CurrentBuild" should, in theory, be the same as "CurrentBuildNumber", I find that the latter is more specific in providing an actual number. Just a matter of preference, of course.
User avatar
Beuwolf
Posts: 28
Joined: February 15th, 2020, 10:08 pm

Re: Tooltip hot-spot

Post by Beuwolf »

Thank you jsmorley and Yincognito for your help, very much appreciated !! :thumbup:

Will be fiddling around with them and interoperate it to my skins later. :D
User avatar
Yincognito
Posts: 1152
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Tooltip hot-spot

Post by Yincognito »

Beuwolf wrote:
March 16th, 2020, 4:08 pm
Thank you jsmorley and Yincognito for your help, very much appreciated !! :thumbup:

Will be fiddling around with them and interoperate it to my skins later. :D
You're welcome - jsmorley deserve the thanks much more than I do. ;-)