It is currently May 22nd, 2024, 8:42 pm

Alarm Clock?

Get help with creating, editing & fixing problems with skins
ndimension
Posts: 8
Joined: March 9th, 2012, 12:10 pm

Alarm Clock?

Post by ndimension »

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[MeterBackground]
Meter=Image
ImageName=C:\Documents and Settings\niunia\Pulpit\the pearls of wisdom
W=600	
H=450
GreyScale=1
ImageTint=171,54,3,150

[MeasureMyPictures]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=C:\Documents and Settings\niunia\Pulpit\the pearls of wisdom
Subfolders=1
FileFilter=*.jpg;*.gif;*.bmp;*.png
UpdateDivider=10

[MeterShowPicture]
Meter=Image
MeasureName=MeasureMyPictures
X=25
Y=25
W=600
H=450
PreserveAspectRatio=1
LeftMouseUpAction=!Refresh


Ok, I "stole" from official manual and not suprisingly it works perfectly :D

What I need now is additional auto-refresh ie every 10s.
Is it also possible to: force this skin to go "always on top" every 20s then you click some other program on taskbar and the skin goes below it?
ndimension
Posts: 8
Joined: March 9th, 2012, 12:10 pm

Re: Alarm Clock?

Post by ndimension »

Bump and a question:

How to dislplay simple "hello world" a text in a plugin?
r0k
Posts: 78
Joined: March 9th, 2012, 10:06 am

Re: Alarm Clock?

Post by r0k »

ndimension wrote: What I need now is additional auto-refresh ie every 10s.
What do you mean by auto-refresh every 10s. With this code the skin will update (thus refresh) every second :???:
Is it also possible to: force this skin to go "always on top" every 20s then you click some other program on taskbar and the skin goes below it?
Again, i'm not sure what you are asking for. You can use the Bang !ZPos to put the skin on top. if you want this to happen after a given time you have to tie it to a custom counter with a Measure=Calc.

Code: Select all

!ZPos [POS] (Config)
Changes the z-position of the window. -2 = OnDesktop, -1 = OnBottom, 0 = Normal, 1 = OnTop, 2 = Topmost.
To make it normal again you can add the same bang to a button, but you'll have to click in the skin, not outside.
How to dislplay simple "hello world" a text in a plugin?
See Meter=String
ndimension
Posts: 8
Joined: March 9th, 2012, 12:10 pm

Re: Alarm Clock?

Post by ndimension »

r0k wrote:What do you mean by auto-refresh every 10s. With this code the skin will update (thus refresh) every second :???:
So if it can be refreshed (a new image loaded) every second - how can I make it to refresh every 10 seconds?

Thanks for help! :)
User avatar
JoBu
Posts: 271
Joined: February 16th, 2011, 12:46 am
Location: California

Re: Alarm Clock?

Post by JoBu »

Use UpdateRate/UpdateDivider on the measure you want to slow down.
ndimension
Posts: 8
Joined: March 9th, 2012, 12:10 pm

Re: Alarm Clock?

Post by ndimension »

[Rainmeter]
Update=1000
DynamicWindowSize=1



OnRefreshAction=!ZPos[MeasureMyPictures](2) <<<<<<<<<<<<<<<


_____________________________________________Correct not my code is. Instead of doing - tried I have. IOW: what's wrong here?








[MeterBackground]
Meter=Image
ImageName=d:\
subF=1
W=750
H=562
GreyScale=1
ImageTint=171,54,3,150

[MeasureMyPictures]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=d:\
Subfolders=1
FileFilter=*.jpg;*.gif;*.bmp;*.png
UpdateDivider=20

[MeterShowPicture]
Meter=Image
MeasureName=MeasureMyPictures
X=25
Y=25
W=750
H=562
PreserveAspectRatio=1
LeftMouseUpAction=!Refresh

[MeterText2]
Meter=STRING
X=300
Y=1R
W=300
H=20
StringAlign=Right
FontColor=255,255,255,160
FontFace=Trebuchet MS

StringStyle=BoldItalic
FontSize=20
Text=some text
Angle=0.9
User avatar
Brian
Developer
Posts: 2696
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Alarm Clock?

Post by Brian »

!ZPos works on entire skins(or configs), not individual meters.

So in your case, just remove the meter in your bang, like this:
OnRefreshAction=!ZPos 2

Or, if you want to specify the config, then do this:
OnRefreshAction=!ZPos 2 #CURRENTCONFIG#

-Brian
ndimension
Posts: 8
Joined: March 9th, 2012, 12:10 pm

Re: Alarm Clock?

Post by ndimension »

Brian wrote:OnRefreshAction=!ZPos 2
Can this be done with (just made it up) "OnUpdate"?
User avatar
Brian
Developer
Posts: 2696
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Alarm Clock?

Post by Brian »

ndimension wrote:Can this be done with (just made it up) "OnUpdate"?
Why would you want to run that bang every update cycle? You should only need to run that bang once, unless you change it again somewhere else in your code. Remember, a ZPos of 2 means "Stay Topmost" meaning your skin will stay "on top of" any program (or any other skins) you have running. So, even if you open a new program, your skin will still be "on top of" that program (unless that program has a "Stay On Top" feature, which most programs do not).

-Brian
ndimension
Posts: 8
Joined: March 9th, 2012, 12:10 pm

Re: Alarm Clock?

Post by ndimension »

Brian wrote:Why would you want to run that bang every update cycle?

I need it mostly to put a random picture on top of everything every certain amount of time so it reminds me of certain things. I have it already working in OnRefresh and can dismiss the picture to background with a mouse click. Since a Update=xxxxx can be specified why bother with counters? Seems simpler to me.