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 March 28th, 2024, 4:44 pm
Is there any function like "#BACKGROUNDWIDTH#"
- balala
- Rainmeter Sage
- Posts: 16110
- 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.
- CyberTheWorm
- Posts: 860
- Joined: August 22nd, 2016, 11:32 pm
- Location: Surrey, B.C., Canada
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.
- balala
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Is there any function like "#BACKGROUNDWIDTH#"
Glad to help.