Page 1 of 1

Is there any function like "#BACKGROUNDWIDTH#"

Posted: November 18th, 2017, 3:09 am
by andyHwang
I'm doing customize several docks with resolution.

I need some function to get background image size in docks

Is there any function like it or how to get image size?

Re: Is there any function like "#BACKGROUNDWIDTH#"

Posted: November 18th, 2017, 7:10 am
by balala
andyHwang wrote:I need some function to get background image size in docks

Is there any function like it or how to get image size?
Depends on how the background is created.
If it's a meter of the skin (something like a [MeterBackground] image meter), then you can use the [MeterBackground:W] section variable, which returns the width of the image meter. Just have to add the DynamicVariables=1 option to any meter or measure where you'd like to use this variable.
If on the other hand the background is set into the [Rainmeter] section, through a Background option, then the #CURRENTCONFIGWIDTH# built in variable will return the width of the skin. Using this variable also requires the DynamicVariables=1 option to be added.

Re: Is there any function like "#BACKGROUNDWIDTH#"

Posted: November 18th, 2017, 3:42 pm
by CyberTheWorm

Re: Is there any function like "#BACKGROUNDWIDTH#"

Posted: November 19th, 2017, 1:18 am
by andyHwang
balala wrote:Depends on how the background is created.
If it's a meter of the skin (something like a [MeterBackground] image meter), then you can use the [MeterBackground:W] section variable, which returns the width of the image meter. Just have to add the DynamicVariables=1 option to any meter or measure where you'd like to use this variable.
If on the other hand the background is set into the [Rainmeter] section, through a Background option, then the #CURRENTCONFIGWIDTH# built in variable will return the width of the skin. Using this variable also requires the DynamicVariables=1 option to be added.
[MeterBackground:W] is working great!! thanks

Re: Is there any function like "#BACKGROUNDWIDTH#"

Posted: November 19th, 2017, 1:12 pm
by balala
Glad to help.