It is currently April 23rd, 2024, 1:36 pm

IfMatch=[!WriteKeyValue...] issues on registry measures.

Get help with creating, editing & fixing problems with skins
Fatty-Do-Do
Posts: 15
Joined: October 29th, 2022, 12:32 pm

IfMatch=[!WriteKeyValue...] issues on registry measures.

Post by Fatty-Do-Do »

Hello there,

the Problem:
My skin is using HWiNFO64 to display some system information on the desktop. My goal with Version 2.0 is to automate everything that can be automated regarding the necessary user input for Rainmeter.
Therefore I am trying to have Variables set by IfMatchActions, which is working fine untill we get to "IfMatch10" but only when using the !WriteKeyValue bang.

The activated Sensors:
-Effective Core Clock
-CPU Package
-CPU Package Power
-GPU Temperature
-GPU Power
-GPU Effective Clock
-GPU Core Load
-GPU Memory Usage
-GPU Memory Allocated

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
BackgroundMode=2

[Variables]
@Include=#@#Variables.inc

--- reg query HKEY_CURRENT_USER\SOFTWARE\HWiNFO64\VSB ---

[MeasureHWiNFO64RegistryLabel0]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=Label0
IfMatch=(?i)core(?=.*clocks)
IfMatchAction=[!WriteKeyValue Variables CPUCoreClocks 0 "#@#Variables.inc"][!WriteKeyValue Variables CPUName 0 "#@#Variables.inc"]
IfMatch2=(?i)core(?=.*effective(?=.* clocks))
IfMatchAction2=[!WriteKeyValue Variables CPUFrequency 0 "#@#Variables.inc"]
IfMatch3=(?i)cpu(?=.*package(?!.*power))
IfMatchAction3=[!WriteKeyValue Variables CPUTemperature 0 "#@#Variables.inc"]
IfMatch4=(?i)cpu(?=.*package(?=.*power))
IfMatchAction4=[!WriteKeyValue Variables CPUPowerdraw 0 "#@#Variables.inc"]
IfMatch5=(?i)gpu(?=.*temperature)
IfMatchAction5=[!WriteKeyValue Variables GPUTemperature 0 "#@#Variables.inc"][!WriteKeyValue Variables GPUName 0 "#@#Variables.inc"]
IfMatch6=(?i)gpu(?=.*power)
IfMatchAction6=[!WriteKeyValue Variables GPUPowerdraw 0 "#@#Variables.inc"]
IfMatch7=(?i)gpu(?=.*core(?=.*load))
IfMatchAction7=[!WriteKeyValue Variables GPUUsage 0 "#@#Variables.inc"]
IfMatch8=(?i)gpu(?=.*memory(?=.*usage))
IfMatchAction8=[!WriteKeyValue Variables GPUVRAMUsage% 0 "#@#Variables.inc"]
IfMatch9=(?i)gpu(?=.*effective(?=.*clock))
IfMatchAction9=[!WriteKeyValue Variables GPUFrequency 0 "#@#Variables.inc"]
IfMatch10=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction10=[!WriteKeyValue Variables GPUVRAMUsageMB 0 "#@#Variables.inc"]

[MeasureHWiNFO64RegistryLabel1]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=Label1
IfMatch=(?i)Core(?=Clocks)
IfMatchAction=[!WriteKeyValue Variables CPUCoreClocks 1 "#@#Variables.inc"][!WriteKeyValue Variables CPUName 1 "#@#Variables.inc"]
IfMatch2=(?i)core(?=.*effective(?=.* clocks))
IfMatchAction2=[!WriteKeyValue Variables CPUFrequency 1 "#@#Variables.inc"]
IfMatch3=(?i)cpu(?=.*package(?!.*power))
IfMatchAction3=[!WriteKeyValue Variables CPUTemperature 1 "#@#Variables.inc"]
IfMatch4=(?i)cpu(?=.*package(?=.*power))
IfMatchAction4=[!WriteKeyValue Variables CPUPowerdraw 1 "#@#Variables.inc"]
IfMatch5=(?i)gpu(?=.*temperature)
IfMatchAction5=[!WriteKeyValue Variables GPUTemperature 1 "#@#Variables.inc"][!WriteKeyValue Variables GPUName 1 "#@#Variables.inc"]
IfMatch6=(?i)gpu(?=.*power)
IfMatchAction6=[!WriteKeyValue Variables GPUPowerdraw 1 "#@#Variables.inc"]
IfMatch7=(?i)gpu(?=.*core(?=.*load))
IfMatchAction7=[!WriteKeyValue Variables GPUUsage 1 "#@#Variables.inc"]
IfMatch8=(?i)gpu(?=.*memory(?=.*usage))
IfMatchAction8=[!WriteKeyValue Variables GPUVRAMUsage% 1 "#@#Variables.inc"]
IfMatch9=(?i)gpu(?=.*effective(?=.*clock))
IfMatchAction9=[!WriteKeyValue Variables GPUFrequency 1 "#@#Variables.inc"]
IfMatch10=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction10=[!WriteKeyValue Variables GPUVRAMUsageMB 1 "#@#Variables.inc"]

[MeasureHWiNFO64RegistryLabel2]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=Label2
IfMatch=(?i)Core(?=Clocks)
IfMatchAction=[!WriteKeyValue Variables CPUCoreClocks 2 "#@#Variables.inc"][!WriteKeyValue Variables CPUName 2 "#@#Variables.inc"]
IfMatch2=(?i)core(?=.*effective(?=.* clocks))
IfMatchAction2=[!WriteKeyValue Variables CPUFrequency 2 "#@#Variables.inc"]
IfMatch3=(?i)cpu(?=.*package(?!.*power))
IfMatchAction3=[!WriteKeyValue Variables CPUTemperature 2 "#@#Variables.inc"]
IfMatch4=(?i)cpu(?=.*package(?=.*power))
IfMatchAction4=[!WriteKeyValue Variables CPUPowerdraw 2 "#@#Variables.inc"]
IfMatch5=(?i)gpu(?=.*temperature)
IfMatchAction5=[!WriteKeyValue Variables GPUTemperature 2 "#@#Variables.inc"][!WriteKeyValue Variables GPUName 2 "#@#Variables.inc"]
IfMatch6=(?i)gpu(?=.*power)
IfMatchAction6=[!WriteKeyValue Variables GPUPowerdraw 2 "#@#Variables.inc"]
IfMatch7=(?i)gpu(?=.*core(?=.*load))
IfMatchAction7=[!WriteKeyValue Variables GPUUsage 2 "#@#Variables.inc"]
IfMatch8=(?i)gpu(?=.*memory(?=.*usage))
IfMatchAction8=[!WriteKeyValue Variables GPUVRAMUsage% 2 "#@#Variables.inc"]
IfMatch9=(?i)gpu(?=.*effective(?=.*clock))
IfMatchAction9=[!WriteKeyValue Variables GPUFrequency 2 "#@#Variables.inc"]
IfMatch10=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction10=[!WriteKeyValue Variables GPUVRAMUsageMB 2 "#@#Variables.inc"]

[MeasureHWiNFO64RegistryLabel3]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=Label3
IfMatch=(?i)Core(?=Clocks)
IfMatchAction=[!WriteKeyValue Variables CPUCoreClocks 3 "#@#Variables.inc"][!WriteKeyValue Variables CPUName 3 "#@#Variables.inc"]
IfMatch2=(?i)core(?=.*effective(?=.* clocks))
IfMatchAction2=[!WriteKeyValue Variables CPUFrequency 3 "#@#Variables.inc"]
IfMatch3=(?i)cpu(?=.*package(?!.*power))
IfMatchAction3=[!WriteKeyValue Variables CPUTemperature 3 "#@#Variables.inc"]
IfMatch4=(?i)cpu(?=.*package(?=.*power))
IfMatchAction4=[!WriteKeyValue Variables CPUPowerdraw 3 "#@#Variables.inc"]
IfMatch5=(?i)gpu(?=.*temperature)
IfMatchAction5=[!WriteKeyValue Variables GPUTemperature 3 "#@#Variables.inc"][!WriteKeyValue Variables GPUName 3 "#@#Variables.inc"]
IfMatch6=(?i)gpu(?=.*power)
IfMatchAction6=[!WriteKeyValue Variables GPUPowerdraw 3 "#@#Variables.inc"]
IfMatch7=(?i)gpu(?=.*core(?=.*load))
IfMatchAction7=[!WriteKeyValue Variables GPUUsage 3 "#@#Variables.inc"]
IfMatch8=(?i)gpu(?=.*memory(?=.*usage))
IfMatchAction8=[!WriteKeyValue Variables GPUVRAMUsage% 3 "#@#Variables.inc"]
IfMatch9=(?i)gpu(?=.*effective(?=.*clock))
IfMatchAction9=[!WriteKeyValue Variables GPUFrequency 3 "#@#Variables.inc"]
IfMatch10=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction10=[!WriteKeyValue Variables GPUVRAMUsageMB 3 "#@#Variables.inc"]

[MeasureHWiNFO64RegistryLabel4]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=Label4
IfMatch=(?i)Core(?=Clocks)
IfMatchAction=[!WriteKeyValue Variables CPUCoreClocks 4 "#@#Variables.inc"][!WriteKeyValue Variables CPUName 4 "#@#Variables.inc"]
IfMatch2=(?i)core(?=.*effective(?=.* clocks))
IfMatchAction2=[!WriteKeyValue Variables CPUFrequency 4 "#@#Variables.inc"]
IfMatch3=(?i)cpu(?=.*package(?!.*power))
IfMatchAction3=[!WriteKeyValue Variables CPUTemperature 4 "#@#Variables.inc"]
IfMatch4=(?i)cpu(?=.*package(?=.*power))
IfMatchAction4=[!WriteKeyValue Variables CPUPowerdraw 4 "#@#Variables.inc"]
IfMatch5=(?i)gpu(?=.*temperature)
IfMatchAction5=[!WriteKeyValue Variables GPUTemperature 4 "#@#Variables.inc"][!WriteKeyValue Variables GPUName 4 "#@#Variables.inc"]
IfMatch6=(?i)gpu(?=.*power)
IfMatchAction6=[!WriteKeyValue Variables GPUPowerdraw 4 "#@#Variables.inc"]
IfMatch7=(?i)gpu(?=.*core(?=.*load))
IfMatchAction7=[!WriteKeyValue Variables GPUUsage 4 "#@#Variables.inc"]
IfMatch8=(?i)gpu(?=.*memory(?=.*usage))
IfMatchAction8=[!WriteKeyValue Variables GPUVRAMUsage% 4 "#@#Variables.inc"]
IfMatch9=(?i)gpu(?=.*effective(?=.*clock))
IfMatchAction9=[!WriteKeyValue Variables GPUFrequency 4 "#@#Variables.inc"]
IfMatch10=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction10=[!WriteKeyValue Variables GPUVRAMUsageMB 4 "#@#Variables.inc"]

[MeasureHWiNFO64RegistryLabel5]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=Label5
IfMatch=(?i)Core(?=Clocks)
IfMatchAction=[!WriteKeyValue Variables CPUCoreClocks 5 "#@#Variables.inc"][!WriteKeyValue Variables CPUName 5 "#@#Variables.inc"]
IfMatch2=(?i)core(?=.*effective(?=.* clocks))
IfMatchAction2=[!WriteKeyValue Variables CPUFrequency 5 "#@#Variables.inc"]
IfMatch3=(?i)cpu(?=.*package(?!.*power))
IfMatchAction3=[!WriteKeyValue Variables CPUTemperature 5 "#@#Variables.inc"]
IfMatch4=(?i)cpu(?=.*package(?=.*power))
IfMatchAction4=[!WriteKeyValue Variables CPUPowerdraw 5 "#@#Variables.inc"]
IfMatch5=(?i)gpu(?=.*temperature)
IfMatchAction5=[!WriteKeyValue Variables GPUTemperature 5 "#@#Variables.inc"][!WriteKeyValue Variables GPUName 5 "#@#Variables.inc"]
IfMatch6=(?i)gpu(?=.*power)
IfMatchAction6=[!WriteKeyValue Variables GPUPowerdraw 5 "#@#Variables.inc"]
IfMatch7=(?i)gpu(?=.*core(?=.*load))
IfMatchAction7=[!WriteKeyValue Variables GPUUsage 5 "#@#Variables.inc"]
IfMatch8=(?i)gpu(?=.*memory(?=.*usage))
IfMatchAction8=[!WriteKeyValue Variables GPUVRAMUsage% 5 "#@#Variables.inc"]
IfMatch9=(?i)gpu(?=.*effective(?=.*clock))
IfMatchAction9=[!WriteKeyValue Variables GPUFrequency 5 "#@#Variables.inc"]
IfMatch10=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction10=[!WriteKeyValue Variables GPUVRAMUsageMB 5 "#@#Variables.inc"]

[MeasureHWiNFO64RegistryLabel6]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=Label6
IfMatch=(?i)Core(?=Clocks)
IfMatchAction=[!WriteKeyValue Variables CPUCoreClocks 6 "#@#Variables.inc"][!WriteKeyValue Variables CPUName 6 "#@#Variables.inc"]
IfMatch2=(?i)core(?=.*effective(?=.* clocks))
IfMatchAction2=[!WriteKeyValue Variables CPUFrequency 6 "#@#Variables.inc"]
IfMatch3=(?i)cpu(?=.*package(?!.*power))
IfMatchAction3=[!WriteKeyValue Variables CPUTemperature 6 "#@#Variables.inc"]
IfMatch4=(?i)cpu(?=.*package(?=.*power))
IfMatchAction4=[!WriteKeyValue Variables CPUPowerdraw 6 "#@#Variables.inc"]
IfMatch5=(?i)gpu(?=.*temperature)
IfMatchAction5=[!WriteKeyValue Variables GPUTemperature 6 "#@#Variables.inc"][!WriteKeyValue Variables GPUName 6 "#@#Variables.inc"]
IfMatch6=(?i)gpu(?=.*power)
IfMatchAction6=[!WriteKeyValue Variables GPUPowerdraw 6 "#@#Variables.inc"]
IfMatch7=(?i)gpu(?=.*core(?=.*load))
IfMatchAction7=[!WriteKeyValue Variables GPUUsage 6 "#@#Variables.inc"]
IfMatch8=(?i)gpu(?=.*memory(?=.*usage))
IfMatchAction8=[!WriteKeyValue Variables GPUVRAMUsage% 6 "#@#Variables.inc"]
IfMatch9=(?i)gpu(?=.*effective(?=.*clock))
IfMatchAction9=[!WriteKeyValue Variables GPUFrequency 6 "#@#Variables.inc"]
IfMatch10=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction10=[!WriteKeyValue Variables GPUVRAMUsageMB 6 "#@#Variables.inc"]

[MeasureHWiNFO64RegistryLabel7]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=Label7
IfMatch=(?i)Core(?=Clocks)
IfMatchAction=[!WriteKeyValue Variables CPUCoreClocks 7 "#@#Variables.inc"][!WriteKeyValue Variables CPUName 7 "#@#Variables.inc"]
IfMatch2=(?i)core(?=.*effective(?=.* clocks))
IfMatchAction2=[!WriteKeyValue Variables CPUFrequency 7 "#@#Variables.inc"]
IfMatch3=(?i)cpu(?=.*package(?!.*power))
IfMatchAction3=[!WriteKeyValue Variables CPUTemperature 7 "#@#Variables.inc"]
IfMatch4=(?i)cpu(?=.*package(?=.*power))
IfMatchAction4=[!WriteKeyValue Variables CPUPowerdraw 7 "#@#Variables.inc"]
IfMatch5=(?i)gpu(?=.*temperature)
IfMatchAction5=[!WriteKeyValue Variables GPUTemperature 7 "#@#Variables.inc"]
IfMatch6=(?i)gpu(?=.*power)
IfMatchAction6=[!WriteKeyValue Variables GPUPowerdraw 7 "#@#Variables.inc"]
IfMatch7=(?i)gpu(?=.*core(?=.*load))
IfMatchAction7=[!WriteKeyValue Variables GPUUsage 7 "#@#Variables.inc"]
IfMatch8=(?i)gpu(?=.*memory(?=.*usage))
IfMatchAction8=[!WriteKeyValue Variables GPUVRAMUsage% 7 "#@#Variables.inc"]
IfMatch9=(?i)gpu(?=.*effective(?=.*clock))
IfMatchAction9=[!WriteKeyValue Variables GPUFrequency 7 "#@#Variables.inc"]
IfMatch10=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction10=[!WriteKeyValue Variables GPUVRAMUsageMB 7 "#@#Variables.inc"]

[MeasureHWiNFO64RegistryLabel8]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=Label8
IfMatch=(?i)Core(?=Clocks)
IfMatchAction=[!WriteKeyValue Variables CPUCoreClocks 8 "#@#Variables.inc"][!WriteKeyValue Variables CPUName 8 "#@#Variables.inc"]
IfMatch2=(?i)core(?=.*effective(?=.* clocks))
IfMatchAction2=[!WriteKeyValue Variables CPUFrequency 8 "#@#Variables.inc"]
IfMatch3=(?i)cpu(?=.*package(?!.*power))
IfMatchAction3=[!WriteKeyValue Variables CPUTemperature 8 "#@#Variables.inc"]
IfMatch4=(?i)cpu(?=.*package(?=.*power))
IfMatchAction4=[!WriteKeyValue Variables CPUPowerdraw 8 "#@#Variables.inc"]
IfMatch5=(?i)gpu(?=.*temperature)
IfMatchAction5=[!WriteKeyValue Variables GPUTemperature 8 "#@#Variables.inc"][!WriteKeyValue Variables GPUName 8 "#@#Variables.inc"]
IfMatch6=(?i)gpu(?=.*power)
IfMatchAction6=[!WriteKeyValue Variables GPUPowerdraw 8 "#@#Variables.inc"]
IfMatch7=(?i)gpu(?=.*core(?=.*load))
IfMatchAction7=[!WriteKeyValue Variables GPUUsage 8 "#@#Variables.inc"]
IfMatch8=(?i)gpu(?=.*memory(?=.*usage))
IfMatchAction8=[!WriteKeyValue Variables GPUVRAMUsage% 8 "#@#Variables.inc"]
IfMatch9=(?i)gpu(?=.*effective(?=.*clock))
IfMatchAction9=[!WriteKeyValue Variables GPUFrequency 8 "#@#Variables.inc"]
IfMatch10=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction10=[!WriteKeyValue Variables GPUVRAMUsageMB 8 "#@#Variables.inc"]

[MeasureHWiNFO64RegistryLabel9]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=Label9
IfMatch=(?i)Core(?=Clocks)
IfMatchAction=[!WriteKeyValue Variables CPUCoreClocks 9 "#@#Variables.inc"][!WriteKeyValue Variables CPUName 9 "#@#Variables.inc"]
IfMatch=2(?i)core(?=.*effective(?=.* clocks))
IfMatchAction2=[!WriteKeyValue Variables CPUFrequency 9 "#@#Variables.inc"]
IfMatch3=(?i)cpu(?=.*package(?!.*power))
IfMatchAction3=[!WriteKeyValue Variables CPUTemperature 9 "#@#Variables.inc"]
IfMatch4=(?i)cpu(?=.*package(?=.*power))
IfMatchAction4=[!WriteKeyValue Variables CPUPowerdraw 9 "#@#Variables.inc"]
IfMatch5=(?i)gpu(?=.*temperature)
IfMatchAction5=[!WriteKeyValue Variables GPUTemperature 9 "#@#Variables.inc"][!WriteKeyValue Variables GPUName 8 "#@#Variables.inc"]
IfMatch6=(?i)gpu(?=.*power)
IfMatchAction6=[!WriteKeyValue Variables GPUPowerdraw 9 "#@#Variables.inc"]
IfMatch7=(?i)gpu(?=.*core(?=.*load))
IfMatchAction7=[!WriteKeyValue Variables GPUUsage 9 "#@#Variables.inc"]
IfMatch8=(?i)gpu(?=.*memory(?=.*usage))
IfMatchAction8=[!WriteKeyValue Variables GPUVRAMUsage% 9 "#@#Variables.inc"]
IfMatch9=(?i)gpu(?=.*effective(?=.*clock))
IfMatchAction9=[!WriteKeyValue Variables GPUFrequency 9 "#@#Variables.inc"]
IfMatch10=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction10=[!WriteKeyValue Variables GPUVRAMUsageMB 9 "#@#Variables.inc"]


[MeasureTest]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=Label9
IfMatch=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction=[!SetOption MeterMatchTest Text "1"]
IfMatch2=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction2=[!SetOption MeterMatchTest Text "2"]
IfMatch3=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction3=[!SetOption MeterMatchTest Text "3"]
IfMatch4=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction4=[!SetOption MeterMatchTest Text "4"]
IfMatch5=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction5=[!SetOption MeterMatchTest Text "5"]
IfMatch6=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction6=[!SetOption MeterMatchTest Text "6"]
IfMatch7=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction7=[!SetOption MeterMatchTest Text "7"]
IfMatch8=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction8=[!SetOption MeterMatchTest Text "8"]
IfMatch9=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction9=[!SetOption MeterMatchTest Text "9"]
IfMatch10=(?i)gpu(?=.*memory(?=.*allocated))
IfMatchAction10=[!SetOption MeterMatchTest Text "10"]

[MeterMatchTest]
Meter=String
X=0
Y=0
W=250
H=250
ClipString=2
FontColor=255,255,255,255
Text=
The "Variables.inc" in the @Resources folder:

Code: Select all

[Variables]

---CPU---

CPUName=0
CPUCoreClocks=0
CPUFrequency=1
CPUTemperature=2
CPUPowerdraw=3
CPUTemperatureMax=85

---GPU---

GPUName=4
GPUTemperature=4
GPUPowerdraw=5
GPUFrequency=6
GPUUsage=7
GPUVRAMUsage%=8
GPUVRAMUsageMB=
GPUTemperatureMax=85
The registry measures as well as the Variables.inc are set up correctly, since everything up to the Label8 Measure is working.
As a Test I've created the [MeasureTest] and the corresponding meter, which outputs "10" as it is supposed to, so the problem only seems to occur with the !WriteKeyValue Bang.
The "Include=#@#Variables.inc" i will need for another measure to come, but removing it doesn't change anything.
I've tried setting DynamicVariables to 1 for all the measures, which shouldn't change anything and it unsurprisingly doesn't.
I've tried giving the Variable a different name. That didn't help either.
I've tried to write the Variable into other folders or even the same config as above, but with IfMatchAction10=[!WriteKeyValue ...] nothing works.


Any Ideas?

Thanks in advance :thumbup:
Fatty-Do-Do
Posts: 15
Joined: October 29th, 2022, 12:32 pm

Re: IfMatch=[!WriteKeyValue...] issues on registry measures.

Post by Fatty-Do-Do »

In Case anybody would like to help and recreate the issue, I've created a skin you could test with.
I'm grateful for any feedback. If you get any Value for GPUVRAMUsageMB please do tell :rosegift:
IfMatch Test for RM-Forum_0.1 Alpha.rmskin
Cheers ;-)
You do not have the required permissions to view the files attached to this post.
User avatar
SilverAzide
Rainmeter Sage
Posts: 2604
Joined: March 23rd, 2015, 5:26 pm

Re: IfMatch=[!WriteKeyValue...] issues on registry measures.

Post by SilverAzide »

Fatty-Do-Do wrote: November 5th, 2022, 10:49 pm In Case anybody would like to help and recreate the issue, I've created a skin you could test with.
I'm grateful for any feedback. If you get any Value for GPUVRAMUsageMB please do tell :rosegift:

Cheers ;-)
Yes, I got a value for this, so there's not a problem with the IfMatch syntax. I had to alter the skin slightly because my GPU memory allocated index is much larger than the first 10 indexes you are checking.

I really don't want to rain or your parade, but I doubt this scheme to automate finding indexes can work. First off, it is very possible, likely even, that people are going to have many sensor indexes. I've seen people with hundreds because they just pick everything. Secondly, the labels are not consistent between manufacturers; i.e., nVidia vs. AMD GPUs, and Intel vs. AMD CPUs, often use slight different names for the same thing. So you are going to either have to know and plan for every possible sensor name, or you are going to always have a subset of users this won't work for.

The upshot is that the ROI just isn't there: You're gonna spend a jillion hours on a skin that won't work for everyone, when it only takes a user 5 minutes to type in a few values directly.

But it's up to you... I'd strongly suggest using a Lua script to do this instead of Rainmeter, as it has proper loops and also does regex matching, so it would save you a lot of coding.
Gadgets Wiki GitHub More Gadgets...
Fatty-Do-Do
Posts: 15
Joined: October 29th, 2022, 12:32 pm

Re: IfMatch=[!WriteKeyValue...] issues on registry measures.

Post by Fatty-Do-Do »

SilverAzide wrote: November 6th, 2022, 1:42 am Yes, I got a value for this, so there's not a problem with the IfMatch syntax. I had to alter the skin slightly because my GPU memory allocated index is much larger than the first 10 indexes you are checking.

I really don't want to rain or your parade, but I doubt this scheme to automate finding indexes can work. First off, it is very possible, likely even, that people are going to have many sensor indexes. I've seen people with hundreds because they just pick everything. Secondly, the labels are not consistent between manufacturers; i.e., nVidia vs. AMD GPUs, and Intel vs. AMD CPUs, often use slight different names for the same thing. So you are going to either have to know and plan for every possible sensor name, or you are going to always have a subset of users this won't work for.

The upshot is that the ROI just isn't there: You're gonna spend a jillion hours on a skin that won't work for everyone, when it only takes a user 5 minutes to type in a few values directly.

But it's up to you... I'd strongly suggest using a Lua script to do this instead of Rainmeter, as it has proper loops and also does regex matching, so it would save you a lot of coding.
Thank you for raining on my parade. :givelove:
I've no idea about coding at all, so I've no Idea if what I'm doing couldn't be done way better in another way. Also thanks for pointing out the different Manufacturer issue. I still have no Idea however, why IfMatch10 is working for you, but since my way isn't really gonna achieve my goal anyway I'm gonna scrap that part.
Guess it's time to learn som Lua.

Cheers :thumbup: