sa1nt4ch wrote: ↑December 29th, 2020, 11:12 am
@alex88
what is your
DriverDesc Value in that key.
...
For my DriverDesc it shows the GPU name, Radeon RX 580 Series:
DriverDesc.png
And that Info FOX works for me:
Capture.PNG
What you could do for all of the 0000 and 0001 measures, or any pair of measures that would share the same space, is to apply
Substitute="^0$":"" and
RegExpSubstitute=1 to those measures, making both 0000 and 0001 measures for each. Like in the above picture, if the key is empty or missing, it will return 0, so that Substitute will then change it from 0 to displaying nothing. Then you can stack the display of both the 0000 and 0001 measures, and it will automatically show the correct one. That seems to be the fastest fix, and you can also add
UpdateDivider=-1 on all of them so that they don't update after the initial update (connected to the last paragraph). So the measures and the meter could work like this:
Code: Select all
[getProviderName0000]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000
;RegValue=ProviderName
RegValue=DriverDesc
Substitute="^0$":""
RegExpSubstitute=1
UpdateDivider=-1
[getProviderName0001]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0001
;RegValue=ProviderName
RegValue=DriverDesc
Substitute="^0$":""
RegExpSubstitute=1
UpdateDivider=-1
...
[MetergetGPUname]
Meter=String
MeterStyle=AllStyle
StringAlign=Right
MeasureName=getProviderName0000
MeasureName2=getProviderName0001
Text=%1%2
X=590
Y=260
Angle=0.785
DynamicVariables=1
So there are a few ways you can go with it, using the IfMatch you have currently, the above Substitute method, or however you want to.
I just see that in the main
[Rainmeter] section of Info FOX, you have
Update=1 (update every millisecond). Should that be
Update=1000 (1000ms = update once a second)? Or for Info FOX specifically, it seems that you can just do
Update=-1 since nothing needs to be periodically updated. Edit: I reread above and see balala already suggested it, so you probably just missed the
- in
Update=-1.