It is currently November 25th, 2020, 2:05 pm

FAN Stop

Help with creating, editing & fixing problems with skins
User avatar
Fatcho
Posts: 15
Joined: April 21st, 2020, 1:35 am

FAN Stop

Post by Fatcho »

Hello people

I came back here to ask for help, I want to show a message when the fans of my GPU stop, I want "FAN Stop" to appear, I even managed to, but the command was gigantic, I used the command Substitute= for when the percentage of the RPM is zero it appears the message, but to show nothing when the fan is running I had to put it like this

Substitute="100":" ","99":" ","98":" ","97":" ","96":" ","95":" "...
and so on

I would like to know if there is a short command for my case, something like Substitute=">= 1 ":" "," 0 ":" FAN Stop"

Another thing would be for example if I put only Substitute="0": "FAN Stop" when any number zero appears it changes only the zero for FAN Stop, example when 50% appears it shows 5FAN Stop

Code: Select all

[FANStop]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=0xe0001800
HWiNFOSensorInstance=0x0
HWiNFOEntryId=0x8000000
HWiNFOType=CurrentValue
Substitute="100":" ","99":" ","98":" ","97":" ","96":" ","95":" "...

[MeterMainText]
Meter=String
MeasureName=FANStop
Text="%1"
MeterStyle=StringStyle
FontSize=28
Remembering that I use the Google translator, because my English is not good
Image
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4184
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: FAN Stop

Post by eclectic-tech »

Fatcho wrote: November 17th, 2020, 4:41 am Hello people

I came back here to ask for help, I want to show a message when the fans of my GPU stop, I want "FAN Stop" to appear, I even managed to, but the command was gigantic, I used the command Substitute= for when the percentage of the RPM is zero it appears the message, but to show nothing when the fan is running I had to put it like this

Substitute="100":" ","99":" ","98":" ","97":" ","96":" ","95":" "...
and so on

I would like to know if there is a short command for my case, something like Substitute=">= 1 ":" "," 0 ":" FAN Stop"

Another thing would be for example if I put only Substitute="0": "FAN Stop" when any number zero appears it changes only the zero for FAN Stop, example when 50% appears it shows 5FAN Stop
Use RegExpSubstitute so substitution only happens when the string value is a single zero.

Code: Select all

[FANStop]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=0xe0001800
HWiNFOSensorInstance=0x0
HWiNFOEntryId=0x8000000
HWiNFOType=CurrentValue
RegExpSubstitue=1
Substitute="^0$":"FAN Stop"

[MeterMainText]
Meter=String
MeasureName=FANStop
Text="%1"
MeterStyle=StringStyle
FontSize=28