It is currently April 27th, 2024, 9:44 am

[Solved] Auto positioning

General topics related to Rainmeter.
eXpert
Posts: 2
Joined: April 29th, 2011, 11:10 pm

[Solved] Auto positioning

Post by eXpert »

Hi, I made a skin and want to share, it's the .rmskin extension, but how to make auto positioning so that the bar should be at the bottom of any monitor resolution?
Sorry for my poorly english, I hope you understand
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Auto positioning

Post by Kaelri »

You'll need to create a theme file to go with your skin. There, you can define the "Y" position of the theme's active skins, using Rainmeter's global variables. For example, if your bar skin is 33 pixels high, you just need a section like the following:

Code: Select all

[ConfigName]
Active=1
Y=(#WORKAREAHEIGHT#-33)
See here to find out how to add the theme file to your .rmskin, and make it load automatically when installed. :)
eXpert
Posts: 2
Joined: April 29th, 2011, 11:10 pm

Re: Auto positioning

Post by eXpert »

Kaelri wrote:You'll need to create a theme file to go with your skin. There, you can define the "Y" position of the theme's active skins, using Rainmeter's global variables. For example, if your bar skin is 33 pixels high, you just need a section like the following:

Code: Select all

[ConfigName]
Active=1
Y=(#WORKAREAHEIGHT#-33)
See here to find out how to add the theme file to your .rmskin, and make it load automatically when installed. :)
Thanks a lot! :great: