It is currently May 3rd, 2024, 11:29 am

Random position of a random quotes

Get help with creating, editing & fixing problems with skins
User avatar
OverTheRainbow
Posts: 2
Joined: May 29th, 2012, 5:56 pm
Location: Lac-Etchemin, Québec, Canada

Random position of a random quotes

Post by OverTheRainbow »

Hi everyone,

I want to show random quotes in my desktop in a random position. Randomising quotes is Ok. Randomising position is not. When I look in the log, all my measure are OK. I can't figure out why it doesn't move? :(

Does someone know how to fix that? Thanks!


Code: Select all

[Rainmeter]
Update=360000
Debug=1
DynamicWindowSize=1

[Metadata]
Author=OverTheRainbow

[MeasureRandomX]
Measure=Calc
Formula=(Random)
DynamicVariables=1
LowBound=25
HighBound=(#WORKAREAWIDTH#-200)
UpdateRandom=1

[MeasureRandomY]
Measure=Calc
Formula=(Random)
DynamicVariables=1
LowBound=25
HighBound=(#WORKAREAHEIGHT#-25)
UpdateRandom=1

[MeasureRandomQuotes]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName="#CURRENTPATH#Quotes.txt"

[Style]
FontFace=Gabriola
FontSize=25
StringStyle=Normal
FontColor=200,200,200,255
StringEffect=Shadow
FontEffectColor=0,0,0,140
AntiAlias=1
StringAlign=left

[Message]
Meter=STRING
MeasureName=MeasureRandomQuotes
MeterStyle=Style
X=MeasureRandomX
Y=MeasureRandomY
Last edited by smurfier on November 11th, 2012, 4:23 pm, edited 2 times in total.
Reason: Changed to use Hsimg tags for large images.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Random position of a random quotes

Post by smurfier »

This is where DynamicVariables actually comes in. In order to use a measure value outside of a Calc measure's Formula setting it needs to be surrounded by [brackets] and DynamicVariables=1 needs to be set for that section.

Code: Select all

[Message]
Meter=STRING
MeasureName=MeasureRandomQuotes
MeterStyle=Style
X=[MeasureRandomX]
Y=[MeasureRandomY]
DynamicVariables=1
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
OverTheRainbow
Posts: 2
Joined: May 29th, 2012, 5:56 pm
Location: Lac-Etchemin, Québec, Canada

Re: Random position of a random quotes

Post by OverTheRainbow »

Many Thanks! It works great. :great: It was so simple... Thanks also for editing my first post, that's better.

OTR