It is currently May 3rd, 2024, 2:19 pm

[Solved] rmskin install - Open skin to center of the screen?

Get help with creating, editing & fixing problems with skins
kennyist
Posts: 54
Joined: October 8th, 2011, 11:49 pm

[Solved] rmskin install - Open skin to center of the screen?

Post by kennyist »

Hi,

I'm trying to make an options skin appear when my skin is installed. At the moment I'm using Theme load, But it opens to the bottom right of the screen.

Code: Select all

[Rainmeter]

[AlanWake\Options]
Active=1
WindowX=((#SCREENAREAWIDTH# / 2) - 60)
Windowy=((#SCREENAREAWIDTH# / 2) - 60)
This skin itself is:
W=714
H=380

How would i get it to open to center?

Kennyist.
Last edited by kennyist on July 21st, 2012, 1:56 am, edited 2 times in total.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: rmskin install - Open skin to center of the screen?

Post by jsmorley »

To be honest, I would probably not do it in Rainmeter.ini. The problem there is that those calculated positions are lost and converted to hard coded values the second you move the skin. I'd put it in the skin itself:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
OnRefreshAction=!Move ((#SCREENAREAWIDTH#/2)-250) ((#SCREENAREAHEIGHT#/2)-150) #CURRENTCONFIG#

[MeterOne]
Meter=Image
SolidColor=255,0,255,255
W=500
H=300
And just have the Theme load the skin in question. That way, even if they move the skin for some reason, the next time they load it the skin will center again.
kennyist
Posts: 54
Joined: October 8th, 2011, 11:49 pm

Re: rmskin install - Open skin to center of the screen?

Post by kennyist »

jsmorley wrote:To be honest, I would probably not do it in Rainmeter.ini. The problem there is that those calculated positions are lost and converted to hard coded values the second you move the skin. I'd put it in the skin itself:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
OnRefreshAction=!Move ((#SCREENAREAWIDTH#/2)-250) ((#SCREENAREAHEIGHT#/2)-150) #CURRENTCONFIG#

[MeterOne]
Meter=Image
SolidColor=255,0,255,255
W=500
H=300
And just have the Theme load the skin in question. That way, even if they move the skin for some reason, the next time they load it the skin will center again.
Thanks, Works nicely.