It is currently March 28th, 2024, 12:36 pm

Substitute Help

Get help with creating, editing & fixing problems with skins
Post Reply
User avatar
GioRgSaVv
Posts: 62
Joined: February 7th, 2017, 10:02 pm

Substitute Help

Post 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?
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Substitute Help

Post 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"
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Substitute Help

Post 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=#@#
User avatar
GioRgSaVv
Posts: 62
Joined: February 7th, 2017, 10:02 pm

Re: Substitute Help

Post 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
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Substitute Help

Post 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.
User avatar
GioRgSaVv
Posts: 62
Joined: February 7th, 2017, 10:02 pm

Re: Substitute Help

Post by GioRgSaVv »

wow it worked!! :D
thanks a lot!!
Post Reply