Skip to content

Commit a678ab9

Browse files
committed
updated skin provided by the RicardoTM.
1 parent 1db6d10 commit a678ab9

1 file changed

Lines changed: 58 additions & 19 deletions

File tree

Resources/Skins/WebView2/BangCommand/BangCommand.ini

Lines changed: 58 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
1313
[Variables]
1414
WebURL=https://nstechbytes.pages.dev/
1515
WebW=600
16-
WebH=410
16+
WebH=500
1717
WebX=300
1818
WebY=45
19+
ZoomFactor=1.0
1920
Hidden=0
2021
ClickThrough=0
22+
AllowDualControl=1
23+
2124
; ========================================
2225
; Measure
2326
; ========================================
@@ -29,16 +32,25 @@ W=#WebW#
2932
H=#WebH#
3033
X=#WebX#
3134
Y=#WebY#
35+
ZoomFactor=#ZoomFactor#
3236
Hidden=#Hidden#
3337
ClickThrough=#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!"]
3446
DynamicVariables=1
3547

3648
; ========================================
3749
; Background
3850
; ========================================
3951
[MeterBackground]
4052
Meter=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]
4456
Meter=String
@@ -67,23 +79,23 @@ MeterStyle=StyleButtonText
6779
Text=Navigate to Google (via Variable)
6880
X=150
6981
Y=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]
7385
Meter=String
7486
MeterStyle=StyleButtonText
7587
Text=Navigate to GitHub (via Variable)
7688
X=150
7789
Y=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]
8193
Meter=String
8294
MeterStyle=StyleButtonText
83-
Text=Navigate to Example (via Bang)
95+
Text=Navigate to Forum (via Bang)
8496
X=150
8597
Y=118
86-
LeftMouseUpAction=[!CommandMeasure MeasureWebView "Navigate https://example.com"]
98+
LeftMouseUpAction=[!CommandMeasure MeasureWebView "Navigate https://forum.rainmeter.net/"]
8799

88100
[TxtReload]
89101
Meter=String
@@ -121,7 +133,7 @@ W=122
121133
H=24
122134
X=86
123135
Y=208
124-
LeftMouseUpAction=[!SetVariable Hidden 0][!UpdateMeasure MeasureWebView][!Redraw]
136+
LeftMouseUpAction=[!SetVariable Hidden 0][!UpdateMeasure MeasureWebView]
125137

126138
[TxtHide]
127139
Meter=String
@@ -131,15 +143,15 @@ W=125
131143
H=24
132144
X=212
133145
Y=208
134-
LeftMouseUpAction=[!SetVariable Hidden 1][!UpdateMeasure MeasureWebView][!Redraw]
146+
LeftMouseUpAction=[!SetVariable Hidden 1][!UpdateMeasure MeasureWebView]
135147

136148
[TxtExecuteScript]
137149
Meter=String
138150
MeterStyle=StyleButtonText
139151
Text=Execute Script
140152
X=150
141153
Y=238
142-
LeftMouseUpAction=[!CommandMeasure MeasureWebView "ExecuteScript alert('Hello!')"]
154+
LeftMouseUpAction=[!CommandMeasure MeasureWebView "ExecuteScript console.log('Script has been executed.')"]
143155

144156
[TxtOpenDevTools]
145157
Meter=String
@@ -155,46 +167,73 @@ MeterStyle=StyleButtonText
155167
Text=Set Width: 500 (via Variable)
156168
X=150
157169
Y=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]
161174
Meter=String
162175
MeterStyle=StyleButtonText
163176
Text=Set Height: 400 (via Variable)
164177
X=150
165178
Y=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]
169183
Meter=String
170184
MeterStyle=StyleButtonText
171-
Text=Set X: 100 (via Variable)
185+
Text=Set X: 320 (via Variable)
172186
X=150
173187
Y=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]
177192
Meter=String
178193
MeterStyle=StyleButtonText
179194
Text=Set Y: 50 (via Variable)
180195
X=150
181196
Y=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]
185210
Meter=String
186211
MeterStyle=StyleButtonText
187212
Text=Set ClickThrough: 1 (via Variable)
188213
X=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]
193218
Meter=String
194219
MeterStyle=StyleButtonText
195220
Text=Set ClickThrough: 0 (via Variable)
196221
X=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

Comments
 (0)