Quantcast
Viewing all articles
Browse latest Browse all 705

Help: Rainmeter Skins • Re: Hide & Seek

There would actually be 3 different windows.

When the input is confirmed, the window with the website opens... (that works)

When I click on the settings button, the window with the settings should open, including in the slide function

The same should happen when I click on the favorites button. Image may be NSFW.
Clik here to view.
:???:
Can you give me an Tip?
Something like this maybe?

Code:

[Variables]OriginalW=650OriginalH=50Transparency=150TextFieldW=450ContainerH=0ScaleX=1ScaleY=1MinScale=1MaxScale=5InputText=""SearchText=""Show=0Execute=1[Rainmeter]Update=1000AccurateText=1DynamicWindowSize=1OnRefreshAction=[!SetAnchor "0%" "100%"]---Measures---[Mouse]Measure=PluginPlugin=MouseLeftMouseDragAction=[!SetVariable ScaleX (Clamp(($MouseX$-[#MouseX])/#OriginalW#,#MinScale#,#MaxScale#))][!SetVariable ScaleY (Clamp(($MouseY$-[#MouseY])/#OriginalH#,#MinScale#,#MaxScale#))][!UpdateMeter *][!Redraw]LeftMouseUpAction=[!CommandMeasure Mouse "Stop"][!WriteKeyValue Variables ScaleX (Clamp(($MouseX$-[#MouseX])/#OriginalW#,#MinScale#,#MaxScale#))][!WriteKeyValue Variables ScaleY (Clamp(($MouseY$-[#MouseY])/#OriginalH#,#MinScale#,#MaxScale#))]RequireDragging=1DynamicVariables=1[WebView]Measure=PluginPlugin=WebViewURL=https://www.google.com/search?q=[#SearchText]X=(#Show#<>1?#CURRENTCONFIGWIDTH#:[Background:X]+12)Y=(#Show#<>1?#CURRENTCONFIGHEIGHT#:[Background:YH]+12)W=(#Show#<>1?0:[Background:W]-24)H=(#Show#<>1?0:630)UpdateDivider=-1DynamicVariables=1[Slider]Measure=PluginPlugin=ActionTimerActionList1=Repeat SlideDown,2,65 | Wait 2 | HideSlideDown=[!SetVariable ContainerH (Clamp(#ContainerH#-10,0,650))][!UpdateMeasure Slider][!UpdateMeter *][!Redraw]Hide=[!SetVariable Show 0][!SetVariable ContainerH 0][!UpdateMeasure WebView][!UpdateMeter *][!Redraw]ActionList2=Show | Wait 2 | Repeat SlideUp,2,65Show=[!SetVariable ContainerH 0][!UpdateMeasure WebView][!UpdateMeter *][!Redraw]SlideUp=[!SetVariable ContainerH (Clamp(#ContainerH#+10,0,650))][!UpdateMeasure Slider][!UpdateMeter *][!Redraw]DynamicVariables=1[InputText]Measure=PluginPlugin=InputTextFontColor=0,0,0,255SolidColor=255,255,255,255X=([TextField:X]+10)Y=([TextField:Y]+4)W=([Textfield:W]-20)H=([Textfield:H]-10)FontFace=BariolFontSize=(20*Max(#ScaleX#,#ScaleY#))StringAlign=CenterFocusDismiss=1Command1=[!SetVariable InputText """$UserInput$"""][!SetVariable SearchText """[InputText:EncodeURL]"""][!SetVariable Show 1][!SetOption WebView URL """https://www.google.com/search?q=[#SearchText]"""][!CommandMeasure Slider "Stop 1"][!CommandMeasure Slider "Stop 2"][!CommandMeasure Slider "Execute 2"]UpdateDivider=-1DynamicVariables=1---Styles---[Texts]SolidColor=0,0,0,1FontColor=255,255,255,255FontSize=20AntiAlias=1---Meters---[Background]Meter=ShapeShape=Rectangle 0,0,(#OriginalW#*#ScaleX#),(#OriginalH#*#ScaleY#),10 | Fill Color 0,0,0,#Transparency# | StrokeWidth 2 | Stroke Color 0,0,0,140AntiAlias=1UpdateDivider=-1DynamicVariables=1[SearchButton]Meter=StringMeterStyle=TextsX=(10*#ScaleX#)Y=(5*#ScaleY#)Text=🔍UpdateDivider=-1LeftMouseUpAction=[!SetVariable Execute (#Show#=0?2:1)][!SetVariable Show (#Show#=0?1:#Show#)][!CommandMeasure Slider "Stop 1"][!CommandMeasure Slider "Stop 2"][!CommandMeasure Slider "Execute [#Execute]"]DynamicVariables=1[TextField]Meter=ShapeX=(60*#ScaleX#)Y=(5*#ScaleY#)Shape=Rectangle (0*#ScaleX#),(0*#ScaleY#),(#TextFieldW#*#ScaleX#),(40*#ScaleY#),10 | Fill Color 0,0,0,1 | StrokeWidth 2 | Stroke Color 150,150,150,150LeftMouseUpAction=[!CommandMeasure InputText "ExecuteBatch 1"]DynamicVariables=1[PinButton]Meter=StringMeterStyle=TextsX=(520*#ScaleX#)Y=(5*#ScaleY#)Text=📌UpdateDivider=-1LeftMouseUpAction=[]DynamicVariables=1[FavoritesButton]Meter=StringMeterStyle=TextsX=(565*#ScaleX#)Y=(5*#ScaleY#)Text=🔖UpdateDivider=-1LeftMouseUpAction=[!SetVariable Execute (#Show#=0?2:1)][!SetVariable Show (#Show#=0?2:#Show#)][!CommandMeasure Slider "Stop 1"][!CommandMeasure Slider "Stop 2"][!CommandMeasure Slider "Execute [#Execute]"]DynamicVariables=1[SettingsButton]Meter=StringMeterStyle=TextsX=(610*#ScaleX#)Y=(5*#ScaleY#)Text=⚙UpdateDivider=-1LeftMouseUpAction=[!SetVariable Execute (#Show#=0?2:1)][!SetVariable Show (#Show#=0?3:#Show#)][!CommandMeasure Slider "Stop 1"][!CommandMeasure Slider "Stop 2"][!CommandMeasure Slider "Execute [#Execute]"]DynamicVariables=1[Drag]Meter=ShapeX=([Background:W]-9)Y=([Background:H]-9)Shape=Line 8,0,0,8 | StrokeWidth 2 | Stroke Color 0,255,255,1Shape2=Line 8,0,8,8 | StrokeWidth 2 | Stroke Color 0,255,255,1Shape3=Line 0,8,8,8 | StrokeWidth 2 | Stroke Color 0,255,255,1 MouseActionCursorName=SIZE_NWSEToolTipText=ExpandUpdateDivider=-1LeftMouseDownAction=[!SetVariable MouseX ($MouseX$-[#CURRENTSECTION#:W])][!SetVariable MouseY ($MouseY$-[#CURRENTSECTION#:H])][!CommandMeasure Mouse "Start"]DynamicVariables=1[ContainerVisible]Hidden=(1-Sgn(#Show#))Meter=ShapeShape=Rectangle ([Background:X]+1),([Background:YH]+1),([Background:W]-2),(#ContainerH#),10 | Fill Color 0,0,0,#Transparency# | StrokeWidth 2 | Stroke Color 0,0,0,140UpdateDivider=-1DynamicVariables=1[Container]Hidden=(1-Sgn(#Show#))Meter=ShapeShape=Rectangle ([Background:X]+1),([Background:YH]+1),([Background:W]-2),(#ContainerH#),10 | Fill Color 0,0,0,255 | StrokeWidth 2 | Stroke Color 0,0,0,140UpdateDivider=-1DynamicVariables=1[Favorites]Container=ContainerHidden=(#Show#<>2?1:0)Meter=StringMeterStyle=TextsX=([Background:X]+12)Y=([Background:YH]+12)W=([Background:W]-24)H=(630)SolidColor=0,128,0,128Text=Some Favorites Here (e.g. https://www.rainmeter.net)UpdateDivider=-1LeftMouseUpAction=[!SetVariable Show 1][!SetOption WebView URL """https://www.rainmeter.net"""][!UpdateMeasure WebView][!UpdateMeter *][!Redraw]DynamicVariables=1[Setttings]Container=ContainerHidden=(#Show#<>3?1:0)Meter=StringMeterStyle=TextsX=([Background:X]+12)Y=([Background:YH]+12)W=([Background:W]-24)H=(630)SolidColor=0,128,0,128Text=Some Settings Here (e.g. color settings, etc.)UpdateDivider=-1DynamicVariables=1
Click on the 1st, 3rd, or 4th button to see how it works. You can click on the favorite text as well, to go to the Rainmeter site, as a sample favorite. Entering some input will change the WebView URL back to a google search one. I eliminated unused variables. Changed the WebContainrH to ContainerH as it's now the height of the "container" used for any of the search, favorites or settings content. Changed WebShow to Show as now its value is either 0 = contracted, 1 = expanded for search, 2 = expanded for favorites, 3 = expanded for settings, which are chosen when clicking the buttons or on a favorite. Used the Execute variable to toggle between expanding and contracting any "active" contents, based on the Show value. As of now, navigating from one content to another (for example, from favorites to settings) is not instantaneous but involves contracting the "old" content before expanding the "new" one. That can be changed if needed though, by directly making ContainerH the maximum without executing any sliding if Show is different than 0 (when not 0, it means some content is shown).

Statistics: Posted by Yincognito — Yesterday, 8:06 pm



Viewing all articles
Browse latest Browse all 705

Trending Articles