It is currently September 29th, 2024, 1:26 pm

Tablet - Screen Orientation

General topics related to Rainmeter.
kimstar00
Posts: 1
Joined: July 30th, 2014, 4:19 am

Tablet - Screen Orientation

Post by kimstar00 »

Hi all,

wondering if there was a way to get skins on rainmeter to re-position themselves depending on the orientation of my screen?

I currently have everything nicely setup on the bottom of my screen when my tablet is in landscape mode and I want these skins to be on the bottom of the screen when I go into portrait mode.

Is this possible? :confused:


Thanks,
Paul
User avatar
iNjUST
Posts: 117
Joined: June 20th, 2012, 12:44 am

Re: Tablet - Screen Orientation

Post by iNjUST »

My initial suggestion would be to use Monitor variables both in IfConditions and in positioning Bangs.

Assuming when your device changes orientation, the screen size changes (for example) from 1920 (width) by 1080 (height) to 1080 by 1920. Thus when IfCondition=(#SCREENAREAWIDTH#=1080), then IfTrueAction=[!Move MeterName 0 (#SCREENAREAHEIGHT#-100)].

Not sure if this would work though.
User avatar
killall-q
Posts: 307
Joined: August 14th, 2009, 8:04 am

Re: Tablet - Screen Orientation

Post by killall-q »

You can manually edit Rainmeter.ini (right-click system tray icon, "Edit settings") to make positions relative to the bottom/right edge of the screen and relative to a particular monitor.

Skin sections

Then use a measure like above to detect an aspect ratio change and execute a !RefreshApp bang.