Page 1 of 1

Substitute Help

Posted: July 23rd, 2017, 10:03 am
by GioRgSaVv
Hello there, does anyone knows what is wrong with my skin?

Code: Select all

[MeasureWin7Audio]
Measure=Plugin
Plugin=Win7AudioPlugin
Substitute="Headphones":"@Resources\Headphones.png","Speakers":"@Resources\Speakers.png"
DynamicVariables=1

[Device]
Meter=String
MeasureName=MeasureWin7Audio
Text=%1
Instead of showing the images it shows text "Headphones" and "Speakers", how to make it show me images instead of text?

Re: Substitute Help

Posted: July 23rd, 2017, 10:20 am
by balala
GioRgSaVv wrote:Instead of showing the images it shows text "Headphones" and "Speakers", how to make it show me images instead of text?
Probably replacing the Headphones with Headphone and Speakers with Speaker, in the Substitute option.
Also probably would be a good idea to replace the @Resources with #@# (https://forum.rainmeter.net/viewtopic.php?p=119247#p119247).
So, replace the Substitute="Headphone[color=#FF0000]s[/color]":"[color=#FF0000]@Resources\[/color]Headphones.png","Speaker[color=#FF0000]s[/color]":"[color=#FF0000]@Resources\[/color]Speakers.png" option with Substitute="Headphone":"#@#Headphones.png","Speaker":"#@#Speakers.png"

Re: Substitute Help

Posted: July 23rd, 2017, 10:33 am
by jsmorley
GioRgSaVv wrote:Hello there, does anyone knows what is wrong with my skin?

Code: Select all

[MeasureWin7Audio]
Measure=Plugin
Plugin=Win7AudioPlugin
Substitute="Headphones":"@Resources\Headphones.png","Speakers":"@Resources\Speakers.png"
DynamicVariables=1

[Device]
Meter=String
MeasureName=MeasureWin7Audio
Text=%1
Instead of showing the images it shows text "Headphones" and "Speakers", how to make it show me images instead of text?

Code: Select all

[MeasureWin7Audio]
Measure=Plugin
Plugin=Win7AudioPlugin

[Device]
Meter=Image
MeasureName=MeasureWin7Audio
ImagePath=#@#

Re: Substitute Help

Posted: July 23rd, 2017, 10:35 am
by GioRgSaVv
it shows me the path

is it even possible to replace text with image? I not sure but I think I saw it somewhere

Re: Substitute Help

Posted: July 23rd, 2017, 10:36 am
by jsmorley
GioRgSaVv wrote:it shows me the path

is it even possible to replace text with image? I not sure but I think I saw it somewhere
No, you can't show an image using a String meter.

Re: Substitute Help

Posted: July 23rd, 2017, 10:41 am
by GioRgSaVv
wow it worked!! :D
thanks a lot!!