It is currently March 28th, 2024, 6:46 pm

ActionTimer and FrostedGlass

Get help with creating, editing & fixing problems with skins
azazello
Posts: 33
Joined: December 14th, 2017, 6:41 pm

Re: ActionTimer and FrostedGlass

Post by azazello »

Click to animate:
Безымянный проект.gif

Code: Select all

[MeasureCloseUTAnimeRight]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Move1 | Move2 | Move3 | Move4 | Move5 | Move6 | Move7 | Move8 | Move9 | Move10
Move1=[!Move "(#PSCREENAREAWIDTH#)-(306)" "0" "Ultimate Sidebar"]
Move2=[!Move "(#PSCREENAREAWIDTH#)-(272)" "0" "Ultimate Sidebar"]
Move3=[!Move "(#PSCREENAREAWIDTH#)-(238)" "0" "Ultimate Sidebar"]
Move4=[!Move "(#PSCREENAREAWIDTH#)-(204)" "0" "Ultimate Sidebar"]
Move5=[!Move "(#PSCREENAREAWIDTH#)-(170)" "0" "Ultimate Sidebar"]
Move6=[!Move "(#PSCREENAREAWIDTH#)-(136)" "0" "Ultimate Sidebar"]
Move7=[!Move "(#PSCREENAREAWIDTH#)-(102)" "0" "Ultimate Sidebar"]
Move8=[!Move "(#PSCREENAREAWIDTH#)-(68)" "0" "Ultimate Sidebar"]
Move9=[!Move "(#PSCREENAREAWIDTH#)-(34)" "0" "Ultimate Sidebar"]
Move10=[!Move "(#PSCREENAREAWIDTH#)-(0)" "0" "Ultimate Sidebar"]
] 
I understood correctly that this is the only option to make a panel with blur?
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: ActionTimer and FrostedGlass

Post by balala »

azazello wrote:I understood correctly that this is the only option to make a panel with blur?
With this code you're completely moving a skin (whose Config is Ultimate Sidebar) with the posted ActionTimer plugin measure. The blurring is applied probably to this moving skin, right? If this is correct, then yes, this is the only possibility.
What I'd do instead would be to renounce to all those MoveX options. I doubt there would be needed so many of them. Probably something like this would be better (and simpler):

Code: Select all

[Variables]
X=0
U=[!UpdateMeasure "MeasureCloseUTAnimeRight"][!UpdateMeasure "MeasureX"]

[MeasureCloseUTAnimeRight]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat Move1,20,10
Move1=[!SetVariable Offset "(Clamp(#OffSet#-34,0,340))"]#U#
ActionList2=Repeat Move1,20,10
Move2=[!SetVariable Offset "(Clamp(#OffSet#+34,0,340))"]#U#

[MeasureX]
Measure=Calc
Formula=#X#
OnChangeAction=[!Move "(#PSCREENAREAWIDTH#-#X#)" "0" "Ultimate Sidebar"]
DynamicVariables=1

[SomeMeter]
Meter=...
...
MouseOverAction=[!CommandMeasure "MeasureCloseUTAnimeRight" "Stop 1"][!CommandMeasure "MeasureCloseUTAnimeRight" "Execute 2"]
MouseLeaveAction=[!CommandMeasure "MeasureCloseUTAnimeRight" "Execute 1"][!CommandMeasure "MeasureCloseUTAnimeRight" "Stop 2"]
azazello
Posts: 33
Joined: December 14th, 2017, 6:41 pm

Re: ActionTimer and FrostedGlass

Post by azazello »

balala

I'm sorry, I just got to the computer.I consider myself a beginner of rainmeter and I was not able to run Your skin.

Code: Select all

[Rainmeter]
Update=1000

[Variables] 
Bar=344
X=0 
U=[!UpdateMeasure "MeasureSlider"][!UpdateMeasure "MeasureX"]

[MeasureSlider] 
Measure=Plugin 
Plugin=ActionTimer 
ActionList1=Repeat Move1,20,10 
Move1=[!SetVariable Offset "(Clamp(#OffSet#-34,0,340))"]#U# 
ActionList2=Repeat Move1,20,10 
Move2=[!SetVariable Offset "(Clamp(#OffSet#+34,0,340))"]#U# 

[MeasureX] 
Measure=Calc 
Formula=#X# 
OnChangeAction=[!Move "(#PSCREENAREAWIDTH#-#X#)" "0" "Sidebar"] 
DynamicVariables=1 

[MeterBar] 
Meter=Image
W=#Bar#
H=(#WORKAREAHEIGHT#)
SolidColor=10,10,10,200
MouseOverAction=[!CommandMeasure "MeasureSlider" "Stop 1"][!CommandMeasure "MeasureSlider" "Execute 2"] 
MouseLeaveAction=[!CommandMeasure "MeasureSlider" "Execute 1"][!CommandMeasure "MeasureSlider" "Stop 2"] 
You do not have the required permissions to view the files attached to this post.
azazello
Posts: 33
Joined: December 14th, 2017, 6:41 pm

Re: ActionTimer and FrostedGlass

Post by azazello »

dvo wrote:there is set a variable offset and it's not used some how bit stupid.... :17oops

If You do not find it difficult,specify where the error is in the code :)
azazello
Posts: 33
Joined: December 14th, 2017, 6:41 pm

Re: ActionTimer and FrostedGlass

Post by azazello »

dvo wrote:i could but why are you not grabbing a example of js morley or all other i could rewrite it but balala did that.
I want to apply to the Frosted Glass panel
azazello
Posts: 33
Joined: December 14th, 2017, 6:41 pm

Re: ActionTimer and FrostedGlass

Post by azazello »

dvo wrote:

Code: Select all

[Rainmeter]
Update=100
DynamicWindowSize=1
AccurateText=1

[Variables]
U=[!UpdateMeasureGroup Sliders][!UpdateMeterGroup Sliders][!Redraw]
W=4
Offset=0
SlideAmount=10
SecondsBetween=60

[MeasureTimer]
Measure=Calc
Formula=(MeasureTimer % #SecondsBetween#) +1
IfCondition=MeasureTimer=#SecondsBetween#
IfTrueAction=[!CommandMeasure MeasureSlider "Execute 2"][!Redraw]

[MeasureSlider]
Measure=Plugin
Plugin=ActionTimer
Group=Sliders

ActionList1=Repeat Right,#W#,25
ActionList2=Repeat Left,#W#,25

Right=[!SetVariable Offset "(Clamp(#Offset#+#SlideAmount#,0,150))"]#U#
Left=[!SetVariable Offset "(Clamp(#Offset#-#SlideAmount#,0,150))"]#U#


DynamicVariables=1

[background]
Meter=Image
ImageName=#@#bg.png
X=0
Y=0

[glass]
Meter=Image
Group=Sliders
ImageName=#@#glass.png
X=R
Y=17
W=#Offset#
H=260
DynamicVariables=1
hidden=0
MouseLeaveAction = [!CommandMeasure MeasureSlider "Stop 1"] [!CommandMeasure MeasureSlider "Execute 2"]

[Header]
Meter=Image
Group=Sliders
ImageName=#@#header.png
X=R
Y=2
W=5
H=260
DynamicVariables=1
hidden=0
MouseOverAction = [!CommandMeasure MeasureSlider "Execute 2"]

[Header1]
Meter=Image
SolidColor=255,255,255,1
X=390
Y=2
W=10
H=260
MouseOverAction = [!CommandMeasure MeasureSlider "Stop 2"] [!CommandMeasure MeasureSlider "Execute 1"]

[MeterItem1]
Meter=String
Group=Sliders
X=420
Y=20
W=(#Offset# - #W#)
H=260
FontSize=11
FontWeight=400
FontColor=255,255,255,255
Padding=5,5,5,5
AntiAlias=1
Text=Item One
LeftMouseUpAction=[!Log "I clicked Item One"]
DynamicVariables=1
hidden=0

Great work :17good But I meant a panel like the notification panel in Windows with an acrylic effect.Thank you for the skin,I hope to learn a lot.