Hello guys...
I'm back again, this time with something it may look simple but I haven't figure it out after a couple of hours playing with a sample code...
the idea is pretty simple...
The orange square in the code slides open an orange bar when the mouse is clicked on,(Slide Open)... once that process is completed, an orange vertical rectangle starts opening,(Extend)... then, the opposite process to close the vertical rectangle, once that is closed/collapsed, then the Orange bar Slides closed leaving just the orange square visible....
Basically each process in order one after the previous one has finished
1 Orange Square Slide Open , finished
2 Orange Rectangle Extends Down, Finished
3 Orange Rectangle Closes up, Finished
4 Orange Bar Slides Closed
The sample code includes some kind of delay effect ( trunc Values ) which are irrelevant but I didn't dare to touch that... I'm pretty sure there is another simpler way to manage the ActionTimer without mixing Math formulas ( Decimals & Fractions )... but that is something to tackle later...
One more question is how to make the Vertical Opening rectangle ( Menu ) to increase in Height...?
Thanks in advance
I'm back again, this time with something it may look simple but I haven't figure it out after a couple of hours playing with a sample code...
the idea is pretty simple...
The orange square in the code slides open an orange bar when the mouse is clicked on,(Slide Open)... once that process is completed, an orange vertical rectangle starts opening,(Extend)... then, the opposite process to close the vertical rectangle, once that is closed/collapsed, then the Orange bar Slides closed leaving just the orange square visible....
Basically each process in order one after the previous one has finished
1 Orange Square Slide Open , finished
2 Orange Rectangle Extends Down, Finished
3 Orange Rectangle Closes up, Finished
4 Orange Bar Slides Closed
The sample code includes some kind of delay effect ( trunc Values ) which are irrelevant but I didn't dare to touch that... I'm pretty sure there is another simpler way to manage the ActionTimer without mixing Math formulas ( Decimals & Fractions )... but that is something to tackle later...
One more question is how to make the Vertical Opening rectangle ( Menu ) to increase in Height...?
Thanks in advance
Code:
[Rainmeter]Update=-1DynamicWindowSize=1[Variables]U=[!UpdateMeasure SlideOpen][!UpdateMeasure ExtendClose][!UpdateMeter Bar][!UpdateMeter Menu][!Redraw]N=0State=1State1=1Ext=0[Bar]meter=ImageX=20Y=700W=(20+#Ext#)H=20SolidColor=255,156,32LeftMouseUpAction=[!CommandMeasure "SlideOpen" "Execute #State#"][!SetVariable "State" "(3-#State#)"][!CommandMeasure "ExtendClose" "Execute #State#"]DynamicVariables=1[Menu]meter=ImageX=200Y=700W=#Ext#H=#Ext#SolidColor=255,156,32DynamicVariables=1[SlideOpen]measure=PluginPlugin=ActionTimerActionList1=Repeat Extend, 10,20 ActionList2=Repeat Close, 10, 20 Extend=[!SetVariable N "(Clamp((#N#+1),0,20))"][!SetVariable Ext "(trunc(165(1-1/(128**(0.05*#N#)))))"]#U#Close=[!SetVariable N "(Clamp((#N#-1),0,20))"][!SetVariable Ext "(trunc(#Ext#*(1-1/(128**(0.05*#N#)))))"]#U#DynamicVariables=1[ExtendClose]measure=PluginPlugin=ActionTimerActionList1=Repeat Extend, 10, 20ActionList2=Repeat Close, 10, 20Extend=[!SetVariable N "(Clamp((#N#+1),0,20))"][!SetVariable Ext "(trunc(165*(1-1/(128**(0.05*#N#)))))"]#U#Close=[!SetVariable N "(Clamp((#N#-1),0,20))"][!SetVariable Ext "(trunc(#Ext#*(1-1/(128**(0.05*#N#)))))"]#U#DynamicVariables=1
Statistics: Posted by jadiazrod — Yesterday, 2:12 pm — Replies 5 — Views 82