Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1707

Help: Rainmeter Skins • Re: Determining the top / bottom position

$
0
0
#ScreenAreaHeight# =1200
Actually, I could determine the current position of my Rainmeter skin in Y, right? then compare the determined value of (#ScreenAreaHeight#/2)... if the value is larger (>600) of the position of the skin, I know I am in Y+, but if the value is smaller (<600), I know I am in Y-

Correct or wrong thinking :confused: :oops:
There might be little bit more complicated. The Y position of a skin higher than 600, is never greater than 600. I most probably would check which is greater: the space above or the space below the skin and would act accordingly. For instance:

Code:

IfCondition=(#CURRENTCONFIGY#>#SCREENAREAHEIGHT#-#CURRENTCONFIGY#-#CURRENTCONFIGHEIGHT#)IfTrueAction={Set options to expand upward}IfFalseAction=(Set options to expand downward}
(make sure to have added a DynamicVariables=1 option to the measure on which you are using this IfCondition).

Statistics: Posted by balala — Yesterday, 8:27 pm



Viewing all articles
Browse latest Browse all 1707

Trending Articles