Here's bg.png if it helps http://i.imgur.com/aC4OBXg.png it's just a red circle.
Right-clicking on the skin and saying refresh would show changes to the WindowX and WindowY properties and reposition the skin right?
Last edited by Senzai on March 18th, 2013, 1:32 am, edited 1 time in total.
WindowX and WindowY only apply to Rainmeter.ini, which contains info on the current loaded skins. They don't belong in the skin's code itself, which is why it isn't working. So now you have two choices, either placing the skin in the center by using the skin's code or by Rainmeter.ini.
Personally, I'd do it in the skin's code, so that it'll always be centered. To do that, change "WindowX" to just "X" and "WindowY" to just "Y".
Here's bg.png if it helps http://i.imgur.com/aC4OBXg.png it's just a red circle.
Right-clicking on the skin and saying refresh would show changes to the WindowX and WindowY properties and reposition the skin right?
You can't use WindowX and WindowY in a skin. Those are settings that are contained in Rainmeter.ini, and for the most part are controlled automatically when you drag a skin on the screen. You also don't want to use the X and Y of a meter to try and set the position of a skin on the screen. However, what you can in the skin is:
Note that there are NO spaces in the formulas in the OnRefreshAction. Bangs are sensitive to spaces in things, unless they are strings and enclosed in quotes. If you really want the prettier formatting for the formulas, you could use:
ScoobSTi wrote:Personally, I'd do it in the skin's code, so that it'll always be centered. To do that, change "WindowX" to just "X" and "WindowY" to just "Y".
That would be a mistake. The entire skin would "grow" to accommodate the meter being set at an X and Y position in the context of the entire skin, and would in any case only be in the middle of the screen as long as the entire skin was positioned in the absolute top left corner of the screen.
Don't forget, X and Y in a meter are relative to the skin, not relative to the screen.
This skin demonstrates what you would get using X and Y in the meter:
jsmorley wrote:
You can't use WindowX and WindowY in a skin. Those are settings that are contained in Rainmeter.ini. You also don't want to use the X and Y of a meter to try and set the position of a skin on the screen. What you can in the skin is:
Note that there are NO spaces in the formulas in the OnRefreshAction. Bangs and Actions are sensitive to spaces in things, unless they are strings and enclosed in quotes. If you really want the prettier formatting for the formulas, you could use:
Thank you for the links to the documentation, that works perfectly
I really should've seen that WindowX and WindowY were for Rainmeter.ini
Is there any reason that I would need Update=1000 if it's literally just a background image and nothing else?
Senzai wrote:
Thank you for the links to the documentation, that works perfectly
I really should've seen that WindowX and WindowY were for Rainmeter.ini
Is there any reason that I would need Update=1000 if it's literally just a background image and nothing else?
Update=1000 is the default, I just always add it due to force of habit more than anything else. I just always add:
[Rainmeter]
Update=1000
to all skins when I start them, as when I am scrolling around later in the skin in my editor, it gives me a nice visual indication that I am at the top.
Anyway, what you really want if the entire skin is just that one meter is Update=-1. That way the skin will only update once when loaded or refreshed and then just sit there minding its own business and using no resources at all.
jsmorley wrote:That would be a mistake. The entire skin would "grow" to accommodate the meter being set at an X and Y position in the context of the entire skin, and would in any case only be in the middle of the screen as long as the entire skin was positioned in the absolute top left corner of the screen.
Don't forget, X and Y in a meter are relative to the skin, not relative to the screen.
In fact with this OnRefreshAction the skin isn't placed exactly to the center of screen. This way the upper left corner of the skin will be in the center of screen. To move it in center, replace the last two parameters of 0% (AnchorX and AnchorY) with 50%: OnRefreshAction=[!SetWindowPosition "50%" "50%" "50%" "50%"]. This way you get the center of skin in the center of screen.