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?
It is currently April 26th, 2024, 3:33 am
Is there any function like "#BACKGROUNDWIDTH#"
-
- Posts: 2
- Joined: November 18th, 2017, 2:58 am
-
- Rainmeter Sage
- Posts: 16172
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Is there any function like "#BACKGROUNDWIDTH#"
Depends on how the background is created.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?
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.
-
- Posts: 860
- Joined: August 22nd, 2016, 11:32 pm
- Location: Surrey, B.C., Canada
Re: Is there any function like "#BACKGROUNDWIDTH#"
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
Deviant Art Page
-
- Posts: 2
- Joined: November 18th, 2017, 2:58 am
Re: Is there any function like "#BACKGROUNDWIDTH#"
[MeterBackground:W] is working great!! thanksbalala 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.
-
- Rainmeter Sage
- Posts: 16172
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania