Hey folks,
I finally found the time to get a little bit into rainmeter :)
So, my plans are to make a theme for my friend where a glowning
thing (i guess it will be a little animation or something) is moving
across a line on the background to give it a sparkling effect.
What i already got is my alpha-creeper (my picture that i want to move
for the beginning^^) showing on the desktop. I also already got him to switch his
position once by telling him to
";MouseOverAction=!MoveMeter 50 50 Creeper"
But that wasn't that great, he didn't move automatically and the MouseOver
command was the best i could find for now.
Do you have a better idea how i can get my little creeper to move around
some waypoints without clicking or something?
As an additional Info, the creeper ist a little *.png file.
greetings
It is currently May 1st, 2024, 2:30 am
Move Pictures through Screen?
-
- Posts: 2
- Joined: April 13th, 2012, 9:06 am
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Move Pictures through Screen?
You are going to want to use some kind of Counter to manage the automation of the movement. Something like this is a rough first pass.
You can play around with the Update and the other numbers to get a smoother animation, but be aware that Rainmeter is not designed to to animation really, and the more you push the numbers to get speed or smoothness, the more CPU it will use.
Be sure you are using the latest beta version of Rainmeter from http://rainmeter.net.
Code: Select all
[Rainmeter]
Update=200
DynamicWindowSize=1
[MeasureTimer]
Measure=Calc
Formula=(MeasureTimer % (#SCREENAREAWIDTH# - 16)) + 32
[MeterSplat]
Meter=Image
ImageName=Splat.png
X=([MeasureTimer] - 32)
DynamicVariables=1
Be sure you are using the latest beta version of Rainmeter from http://rainmeter.net.
-
- Posts: 2
- Joined: April 13th, 2012, 9:06 am
Re: Move Pictures through Screen?
So, hi there again.
First, i want to thank you for your help,
my Creeper is moving from left to right from now on^^
Now the new things:
I tried to adapt the code for the y-axis, this worked and the creeper moved
from the top left corner to the bottom right corner, but still not that perfect
for my needs :/
So I started to play around with if causes and tried to tell rainmeter
that the y-axis has to change when the x axis reaches a certain point.
and also with a little fix, just in case
but both didn't work and the Creeper keeps creeping the top of my
monitor.
then i tried to use the other way of if causes shown in the manual:
I am not sure if this one still complies with the manual because I played
with the code and maybe broke it
Someone got an idea how to change Y in dependence to X/MeasureTimer1?
First, i want to thank you for your help,
my Creeper is moving from left to right from now on^^
Now the new things:
I tried to adapt the code for the y-axis, this worked and the creeper moved
from the top left corner to the bottom right corner, but still not that perfect
for my needs :/
So I started to play around with if causes and tried to tell rainmeter
that the y-axis has to change when the x axis reaches a certain point.
Code: Select all
if ([MeasureTimer1] => 200)
then
Y=300
else
Y=500
end if
Code: Select all
Y=if ([MeasureTimer1] => 200)
then
300
else
500
end if
monitor.
then i tried to use the other way of if causes shown in the manual:
Code: Select all
if ([MeasureTimer1] => 200) ? 300 : 500
with the code and maybe broke it
Someone got an idea how to change Y in dependence to X/MeasureTimer1?