Heya guys,
I'm new to Rainmeter, and I've ended up using the following in order to have the clock on the top right corner
[ClockTopRight]
Measure=Calc
UpdateDivider=-1
DynamicVariables=1
OnUpdateAction=!Move "2032" "-20"
Because of my OCD I'd like to update the 2032 value to 2026 when it goes to AM so it keeps a specific space from the right side of the monitor. Any ideas/suggestions how I can do that? Or if there is a better way to achieve the above :/
Thanks!
It is currently April 23rd, 2024, 8:10 pm
Changing OnUpdateAction on AM/PM (top right corner issue)
-
- Posts: 1
- Joined: January 6th, 2019, 10:19 pm
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Changing OnUpdateAction on AM/PM (top right corner issue)
I personally wouldn't force the entire skin to react to anything to determine the position.
I would set the String meter(s) to StringAlign=Right, so they are aligned with the right-hand side of the skin, and then just drag the skin where I want it. Rainmeter will keep it there. Then AM / PM or any other "length" of the string won't matter.
https://docs.rainmeter.net/manual/meters/string/#StringAlign
If you really want, you can additionally add a !Move bang to OnRefreshAction in the [Rainmeter] section of the skin, so even if you move it accidentally, it will go back to where you want it when the skin is loaded or refreshed.
https://docs.rainmeter.net/manual/skins/rainmeter-section/#OnRefreshAction
I would set the String meter(s) to StringAlign=Right, so they are aligned with the right-hand side of the skin, and then just drag the skin where I want it. Rainmeter will keep it there. Then AM / PM or any other "length" of the string won't matter.
https://docs.rainmeter.net/manual/meters/string/#StringAlign
If you really want, you can additionally add a !Move bang to OnRefreshAction in the [Rainmeter] section of the skin, so even if you move it accidentally, it will go back to where you want it when the skin is loaded or refreshed.
https://docs.rainmeter.net/manual/skins/rainmeter-section/#OnRefreshAction