@@ -13,11 +13,14 @@ License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
1313[Variables]
1414WebURL =https://nstechbytes.pages.dev/
1515WebW =600
16- WebH =410
16+ WebH =500
1717WebX =300
1818WebY =45
19+ ZoomFactor =1.0
1920Hidden =0
2021ClickThrough =0
22+ AllowDualControl =1
23+
2124; ========================================
2225; Measure
2326; ========================================
@@ -29,16 +32,25 @@ W=#WebW#
2932H =# WebH#
3033X =# WebX#
3134Y =# WebY#
35+ ZoomFactor =# ZoomFactor#
3236Hidden =# Hidden#
3337ClickThrough =# ClickThrough#
38+ AllowDualControl =# AllowDualControl#
39+ OnWebViewLoadAction =[!log " WebView loaded succesfully!" ]
40+ OnWebViewFailAction =[!log " WebView failed :(" ]
41+ OnPageFirstLoadAction =[!log " First time on this page!" ]
42+ OnPageLoadStartAction =[!log " Navigation has started!" ]
43+ OnPageLoadingAction =[!log " Page is loading!" ]
44+ OnPageLoadFinishAction =[!log " Navigation has finished!" ]
45+ OnPageReloadAction =[!log " Page has been reloaded!" ]
3446DynamicVariables =1
3547
3648; ========================================
3749; Background
3850; ========================================
3951[MeterBackground]
4052Meter =Shape
41- Shape =Rectangle 0,0,950,480 ,12 | FillColor 0,0,0,200 | StrokeWidth 0
53+ Shape =Rectangle 0,0,920,570 ,12 | FillColor 0,0,0,200 | StrokeWidth 0
4254
4355[Title]
4456Meter =String
@@ -67,23 +79,23 @@ MeterStyle=StyleButtonText
6779Text =Navigate to Google (via Variable)
6880X =150
6981Y =58
70- LeftMouseUpAction =[!SetVariable WebURL " https://www.google.com" ][!UpdateMeasure MeasureWebView][!Redraw]
82+ LeftMouseUpAction =[!SetVariable WebURL " https://www.google.com" ][!UpdateMeasure MeasureWebView]
7183
7284[TxtNavigateGitHub]
7385Meter =String
7486MeterStyle =StyleButtonText
7587Text =Navigate to GitHub (via Variable)
7688X =150
7789Y =88
78- LeftMouseUpAction =[!SetVariable WebURL " https://github.com" ][!UpdateMeasure MeasureWebView][!Redraw]
90+ LeftMouseUpAction =[!SetVariable WebURL " https://github.com" ][!UpdateMeasure MeasureWebView]
7991
80- [TxtNavigateExample ]
92+ [TxtNavigateForum ]
8193Meter =String
8294MeterStyle =StyleButtonText
83- Text =Navigate to Example (via Bang)
95+ Text =Navigate to Forum (via Bang)
8496X =150
8597Y =118
86- LeftMouseUpAction =[!CommandMeasure MeasureWebView " Navigate https://example.com " ]
98+ LeftMouseUpAction =[!CommandMeasure MeasureWebView " Navigate https://forum.rainmeter.net/ " ]
8799
88100[TxtReload]
89101Meter =String
@@ -121,7 +133,7 @@ W=122
121133H =24
122134X =86
123135Y =208
124- LeftMouseUpAction =[!SetVariable Hidden 0][!UpdateMeasure MeasureWebView][!Redraw]
136+ LeftMouseUpAction =[!SetVariable Hidden 0][!UpdateMeasure MeasureWebView]
125137
126138[TxtHide]
127139Meter =String
@@ -131,15 +143,15 @@ W=125
131143H =24
132144X =212
133145Y =208
134- LeftMouseUpAction =[!SetVariable Hidden 1][!UpdateMeasure MeasureWebView][!Redraw]
146+ LeftMouseUpAction =[!SetVariable Hidden 1][!UpdateMeasure MeasureWebView]
135147
136148[TxtExecuteScript]
137149Meter =String
138150MeterStyle =StyleButtonText
139151Text =Execute Script
140152X =150
141153Y =238
142- LeftMouseUpAction =[!CommandMeasure MeasureWebView " ExecuteScript alert('Hello! ')" ]
154+ LeftMouseUpAction =[!CommandMeasure MeasureWebView " ExecuteScript console.log('Script has been executed. ')" ]
143155
144156[TxtOpenDevTools]
145157Meter =String
@@ -155,46 +167,73 @@ MeterStyle=StyleButtonText
155167Text =Set Width: 500 (via Variable)
156168X =150
157169Y =298
158- LeftMouseUpAction =[!SetVariable WebW 500][!UpdateMeasure MeasureWebView][!Redraw]
170+ LeftMouseUpAction =[!SetVariable WebW (# WebW#=600?500:600)][!UpdateMeasure MeasureWebView][!UpdateMeter #CURRENTSECTION#][!Redraw]
171+ DynamicVariables =1
159172
160173[TxtSetHeight]
161174Meter =String
162175MeterStyle =StyleButtonText
163176Text =Set Height: 400 (via Variable)
164177X =150
165178Y =328
166- LeftMouseUpAction =[!SetVariable WebH 400][!UpdateMeasure MeasureWebView][!Redraw]
179+ LeftMouseUpAction =[!SetVariable WebH (# WebH#=410?470:410)][!UpdateMeasure MeasureWebView][!UpdateMeter #CURRENTSECTION#][!Redraw]
180+ DynamicVariables =1
167181
168182[TxtSetX]
169183Meter =String
170184MeterStyle =StyleButtonText
171- Text =Set X: 100 (via Variable)
185+ Text =Set X: 320 (via Variable)
172186X =150
173187Y =358
174- LeftMouseUpAction =[!SetVariable WebX 100][!UpdateMeasure MeasureWebView][!Redraw]
188+ LeftMouseUpAction =[!SetVariable WebX (# WebX#=300?320:300)][!UpdateMeasure MeasureWebView][!UpdateMeter #CURRENTSECTION#][!Redraw]
189+ DynamicVariables =1
175190
176191[TxtSetY]
177192Meter =String
178193MeterStyle =StyleButtonText
179194Text =Set Y: 50 (via Variable)
180195X =150
181196Y =388
182- LeftMouseUpAction =[!SetVariable WebY 50][!UpdateMeasure MeasureWebView][!Redraw]
197+ LeftMouseUpAction =[!SetVariable WebY (# WebY#=45?50:45)][!UpdateMeasure MeasureWebView][!UpdateMeter #CURRENTSECTION#][!Redraw]
198+ DynamicVariables =1
199+
200+ [TxtSetZoom]
201+ Meter =String
202+ MeterStyle =StyleButtonText
203+ Text =Set ZoomFactor: 2.0 (via Variable)
204+ X =150
205+ Y =418
206+ LeftMouseUpAction =[!SetVariable ZoomFactor (# ZoomFactor#=1?2:1)][!UpdateMeasure MeasureWebView][!UpdateMeter #CURRENTSECTION#][!Redraw]
207+ DynamicVariables =1
183208
184209[TxtSetEnableClickThrough]
185210Meter =String
186211MeterStyle =StyleButtonText
187212Text =Set ClickThrough: 1 (via Variable)
188213X =150
189- Y =418
190- LeftMouseUpAction =[!SetVariable ClickThrough 1][!UpdateMeasure MeasureWebView][!Redraw]
214+ Y =448
215+ LeftMouseUpAction =[!SetVariable ClickThrough 1][!UpdateMeasure MeasureWebView]
191216
192217[TxtSetDisableClickThrough]
193218Meter =String
194219MeterStyle =StyleButtonText
195220Text =Set ClickThrough: 0 (via Variable)
196221X =150
197- Y =448
198- LeftMouseUpAction =[!SetVariable ClickThrough 0][!UpdateMeasure MeasureWebView][!Redraw]
222+ Y =478
223+ LeftMouseUpAction =[!SetVariable ClickThrough 0][!UpdateMeasure MeasureWebView]
199224
225+ [TxtSetEnableAllowDualControl]
226+ Meter =String
227+ MeterStyle =StyleButtonText
228+ Text =Set AllowDualControl: 1 (Variable)
229+ X =150
230+ Y =508
231+ LeftMouseUpAction =[!SetVariable AllowDualControl 1][!UpdateMeasure MeasureWebView]
200232
233+ [TxtSetDisableAllowDualControl]
234+ Meter =String
235+ MeterStyle =StyleButtonText
236+ Text =Set AllowDualControl: 0 (Variable)
237+ X =150
238+ Y =538
239+ LeftMouseUpAction =[!SetVariable AllowDualControl 0][!UpdateMeasure MeasureWebView]
0 commit comments