It is currently October 26th, 2021, 11:46 am

!WriteKeyValueGroup required

Help with creating, editing & fixing problems with skins
User avatar
sl23
Posts: 893
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: !WriteKeyValueGroup required

Post by sl23 »

I thought !Update Meter * updated all meters in that command? So for a LeftMouseUpAction all meters in that action were updated?

I don't see any typos either! :confused:

EDIT: From the manual Meter (required): Name of the meter to update. Use * to update all meters.
So what exactly does this do?
User avatar
death.crafter
Posts: 1070
Joined: April 24th, 2021, 8:13 pm

Re: !WriteKeyValueGroup required

Post by death.crafter »

sl23 wrote: August 28th, 2021, 4:03 pm EDIT: From the manual Meter (required): Name of the meter to update. Use * to update all meters.
So what exactly does this do?
It updates all the meters in the skin.

And give the config here, may be I can check it.
from the Realm of Death
My Current Desktop
User avatar
sl23
Posts: 893
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: !WriteKeyValueGroup required

Post by sl23 »

Ok, here's the full config:

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
MouseActionCursor=0

[Metadata]
Name=RoundNet
Author=sl23
Information=Display internet speeds. Click 'SSID' for a web-search function. Select your site then enter your text.||Credits:||Adapted from "SimplyRound" Suite by Krzysztof "gronostaj" Smialek||JSMorley for the InputText example.||Thanks to eclectic-tech for the eBay Link.
Version=2021.8.25
License=CC BY 3.0

[Variables]
Color1=255,255,255,200
Color2=128,255,0
Color3=128,255,0,200
Color4=0,255,255
Color5=255,255,255,60
Color6=235,170,0,210
Color7=164,164,255,210
Color8=255,255,0,255

; --------------- WEB SEARCH ------------------
; Change the "Web" Variable to the path of your chosen Browser.
Web=#PROGRAMPATH#..\..\MyApps\PA.c\PortableApps\FirefoxPortable\FirefoxPortable.exe

CurrentInput=""

Site1Name=DuckDuckGo
Site2Name=GameFAQs
Site3Name=IMDB
Site4Name=YouTube
Site5Name=Discogs
Site6Name=eBay

Site1=[!CommandMeasure mInput "ExecuteBatch 1"]
Site2=[!CommandMeasure mInput "ExecuteBatch 2"]
Site3=[!CommandMeasure mInput "ExecuteBatch 3"]
Site4=[!CommandMeasure mInput "ExecuteBatch 4"]
Site5=[!CommandMeasure mInput "ExecuteBatch 5"]
Site6=[!CommandMeasure mInput "ExecuteBatch 6"]

Link1=https://duckduckgo.com/?q=$UserInput$
Link2=https://gamefaqs.gamespot.com/search?game=$UserInput$
Link3=https://www.imdb.com/find?s=tt&q=$UserInput$
Link4=https://www.youtube.com/search?q=$UserInput$
Link5=https://www.discogs.com/search/?q=$UserInput$
Link6=https://www.ebay.co.uk/sch/i.html?_from=R40&_trksid=p2380057.m570.l1313&_nkw=$UserInput$&_sacat=0

; --------------- WIFI CONNECTION ------------------
; Set the name of your WiFi connection. You must use the EXACT name of the connection.
WiFi1Name=Disconnect
WiFi2Name=sl.23-TT
WiFi3Name=sl23-G7
WiFi4Name=
WiFi5Name=
DownSpeed=32.00
UpSpeed=6.00
CurrentNetwork=sl.23-TT

WiFi1Set=[!CommandMeasure mInput "ExecuteBatch 7"]
WiFi2Set=[!CommandMeasure mInput "ExecuteBatch 8"]
WiFi3Set=[!CommandMeasure mInput "ExecuteBatch 9"]
WiFi4Set=[!CommandMeasure mInput "ExecuteBatch 10"]
WiFi5Set=[!CommandMeasure mInput "ExecuteBatch 11"]

; --------------- SHORTCUTS ------------------
APP1=ms-settings:network-status
APP2=
APP3=#Web#
APP4=path/to/your/email/application

NAME1=Network Settings
NAME2=
NAME3=Browser
NAME4=Email

========================================
; Background
========================================
[Bg]
Meter=Shape
Shape=Rectangle 0,0,230,70,35 | Fill Color 0,0,0,150 | StrokeWidth 2 | Extend StrokeAlpha
StrokeAlpha=Stroke Color #Color5#
DynamicVariables=1
X=2
Y=2

[Bg1]
Meter=Shape
Shape=Rectangle 0,0,60,60,50 | Fill Color 0,0,0,50 | StrokeWidth 2 | Extend StrokeAlpha
Shape2=Rectangle 9,9,42,42,50 | Fill Color 0,0,0,1 | StrokeWidth 2 | Extend StrokeAlpha2
Shape3=Rectangle 5,5,50,50,50 | Fill Color 0,0,0,1 | StrokeWidth 10 | Stroke Color 255,255,255,20
StrokeAlpha=Stroke Color #Color5#
StrokeAlpha2=Stroke Color #Color5#

LeftMouseUpAction=#APP1#
RightMouseUpAction=#APP2#

MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color4#"][!SetOption DLTitle FontColor "#Color2#"] [!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color5#"][!SetOption DLTitle FontColor "#Color1#"] [!UpdateMeter *][!Redraw]

DynamicVariables=1
ToolTipText=L - #NAME1##CRLF#R - #NAME2#
Group=WiFi | Search
X=7
Y=7

[BgLine]
Meter=Shape
Shape=Rectangle 67,42,100,1,0 | Fill Color #Color5# | StrokeWidth 0
DynamicVariables=1
Group=WiFi | Search

[Bg2]
Meter=Shape
Shape=Rectangle 0,0,60,60,50 | Fill Color 0,0,0,50 | StrokeWidth 2 | Extend StrokeAlpha
Shape2=Rectangle 9,9,42,42,50 | Fill Color 0,0,0,1 | StrokeWidth 2 | Extend StrokeAlpha2
Shape3=Rectangle 5,5,50,50,50 | Fill Color 0,0,0,1 | StrokeWidth 10 | Stroke Color 255,255,255,20
StrokeAlpha=Stroke Color #Color5#
StrokeAlpha2=Stroke Color #Color5#

LeftMouseUpAction=#APP3#
RightMouseUpAction=#APP4#

MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color4#"][!SetOption ULTitle FontColor "#Color2#"] [!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color5#"][!SetOption ULTitle FontColor "#Color1#"] [!UpdateMeter *][!Redraw]

DynamicVariables=1
ToolTipText=L - #NAME3##CRLF#R - #NAME4#
Group=WiFi | Search
X=167
Y=7

========================================
; STYLES
========================================
[sAllText]
FontFace=Trebuchet MS
StringStyle=Bold
StringAlign=Center
FontSize=12
FontColor=#Color1#
StringEffect=Shadow
FontEffectColor=0,0,0,150
AntiAlias=1
Group=WiFi | Search

[sHighlight]
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "128,255,0"] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor ""] [!UpdateMeter #CURRENTSECTION#] [!Redraw]

[sRoundBar]
LineStart=22
LineLength=28
LineWidth=2
StartAngle=(Rad(270))
Antialias=1
Solid=1
Group=WiFi | Search

========================================
; DL
========================================
[mDL]
Measure=NetIn
Substitute=".0":""
MinValue=0
MaxValue=(#DownSpeed# * 1048576)

[DLMeter]
Meter=Roundline
MeasureName=mDL
MeterStyle=sRoundBar
LineColor=#Color6#
Percentual=1
X=37
Y=37

[DLTitle]
Meter=String
MeterStyle=sAllText
FontFace=Segoe Fluent Icons
FontSize=16
Text=[\xE896]
X=38
Y=26

[DLValue]
Meter=String
MeasureName=mDL
MeterStyle=sAllText
StringAlign=Left
Text=%1B/s
AutoScale=1k
NumOfDecimals=1
InlineSetting=Size | 8
InlinePattern=^.* (.*)$
X=70
Y=8

========================================
; UL
========================================
[mUL]
Measure=NetOut
Substitute=".0":""
MinValue=0
MaxValue=(#UpSpeed# * 1048576)

[ULMeter]
Meter=Roundline
MeasureName=mUL
MeterStyle=sRoundBar
LineColor=#Color7#
Percentual=1
X=197
Y=37

[ULTitle]
Meter=String
MeterStyle=sAllText
FontFace=Segoe Fluent Icons
FontSize=16
Text=[\xE898]
X=198
Y=26

[ULValue]
Meter=String
MeasureName=mUL
MeterStyle=sAllText
StringAlign=Right
Text=%1B/s
AutoScale=1k
NumOfDecimals=1
InlineSetting=Size | 8
InlinePattern=^.* (.*)$
X=165
Y=47

========================================
; INTERNET
========================================
[mIP]
Measure=Plugin
Plugin=WebParser.dll
Url=http://checkip.dyndns.org
UpdateRate=14400
RegExp="(?siU)Address: (.*)</body>"
StringIndex=1
Substitute="":"N/A"

[IP]
Meter=String
MeterStyle=sAllText | sHighlight
MeasureName=mIP
FontSize=7
Text=IP: %1
InlineSetting=Size | 8
InlinePattern=^.* (.*)$
LeftMouseUpAction=[!ToggleMeterGroup IP] [!UpdateMeter *] [!Redraw]
Hidden=1
Group=IP
X=117
Y=29

[mSSID]
Measure=Plugin
Plugin=WiFiStatus
WiFiInfoType=SSID
Substitute="-1":"No WiFi","0":"#CurrentNetwork#"

IfMatch=No WiFi
IfMatchAction=[!SetOption WiFiIcon Text "[\xEB5E]"][!SetOption WiFi1 FillColor "#Color2#"] [!UpdateMeter *] [!Redraw]
IfNotMatchAction=[!SetOption WiFiIcon Text "[\xE701]"][!SetOption WiFi1 FillColor "#Color5#"] [!UpdateMeter *] [!Redraw]

IfMatch2=#CurrentNetwork#
IfMatchAction2=[!SetOption WiFi2 FillColor "#Color2#"] [!UpdateMeter *] [!Redraw]
IfNotMatchAction2=[!SetOption WiFi2 FillColor "#Color5#"] [!UpdateMeter *] [!Redraw]

IfMatch3=#CurrentNetwork#
IfMatchAction3=[!SetOption WiFi3 FillColor "#Color2#"] [!UpdateMeter *] [!Redraw]
IfNotMatchAction3=[!SetOption WiFi3 FillColor "#Color5#"] [!UpdateMeter *] [!Redraw]

DynamicVariables=1

[SSID]
Meter=String
MeterStyle=sAllText | sHighlight
MeasureName=mSSID
MeasureName2=mIP
FontSize=8
ClipString=1
Text=%1
NumOfDecimals=0
AutoScale=1
LeftMouseUpAction=[!ToggleMeterGroup IP] [!UpdateMeter *] [!Redraw]
Group=IP | WiFi | Search
X=117
Y=29
W=95

[SearchIcon]
Meter=String
MeterStyle=sAllText | sHighlight
FontFace=Segoe Fluent Icons
FontSize=10
Text=[\xF6FA]
LeftMouseUpAction=[!ToggleMeterGroup Search][!SetOption SelectedButton Text "Web Search"] [!UpdateMeter *] [!Redraw]
Group=WiFi
X=72
Y=54

[WiFiIcon]
Meter=String
MeterStyle=sAllText | sHighlight
FontFace=Segoe Fluent Icons
FontSize=12
Text=
LeftMouseUpAction=[!ToggleMeterGroup WiFi][!SetOption SelectedButton Text "Select Network"] [!UpdateMeter *] [!Redraw]
Group=Search
X=92
Y=-2r

========================================
; Choose WiFi
========================================
[sWiFiButton]
Shape=Rectangle 0,0,10,10,50 | Extend FillAlpha | StrokeWidth 2 | Extend StrokeAlpha
FillAlpha=FillColor #Color5#
StrokeAlpha=StrokeColor 128,255,0,0

MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "StrokeColor #Color8#"] [!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# StrokeAlpha ""] [!UpdateMeter *] [!Redraw] 

LeftMouseUpAction=[!CommandMeasure m#CURRENTSECTION#Run "Run"] [!SetOptionGroup WiFi FillAlpha "FillColor #Color5#"][!SetOption #CURRENTSECTION# FillAlpha "FillColor #Color2#"] [!SetOption SelectedButton Text [##CURRENTSECTION#Name]][!WriteKeyValue Variables CurrentNetwork [##CURRENTSECTION#Name]]  [!UpdateMeasure mIP][!UpdateMeter IP][!UpdateMeter SSID] [!UpdateMeter *] [!Redraw]

;[!WriteKeyValue WiFi1 FillAlpha "FillColor #Color5#"][!WriteKeyValue WiFi2 FillAlpha "FillColor #Color5#"][!WriteKeyValue WiFi3 FillAlpha "FillColor #Color5#"][!WriteKeyValue WiFi4 FillAlpha "FillColor #Color5#"][!WriteKeyValue WiFi5 FillAlpha "FillColor #Color5#"][!WriteKeyValue #CURRENTSECTION# FillAlpha "FillColor #Color2#"]
RightMouseUpAction=[##CURRENTSECTION#Set][!SetOptionGroup WiFi FillAlpha "FillColor #Color5#"][!SetOption #CURRENTSECTION# FillAlpha "FillColor #Color6#"] [!UpdateMeter *] [!Redraw]

ToolTipText=[##CURRENTSECTION#Name]
DynamicVariables=1
Group=WiFi
Hidden=1
UpdateDivider=-1
X=20r
Y=r

[WiFi1]
Meter=Shape
MeterStyle=sWiFiButton
X=72
Y=10

[WiFi2]
Meter=Shape
MeterStyle=sWiFiButton

[WiFi3]
Meter=Shape
MeterStyle=sWiFiButton

[WiFi4]
Meter=Shape
MeterStyle=sWiFiButton

[WiFi5]
Meter=Shape
MeterStyle=sWiFiButton

[mWiFi1Run]
Measure=Plugin
Plugin=RunCommand
Program=PowerShell
Parameter=netsh wlan disconnect

[mWiFi2Run]
Measure=Plugin
Plugin=RunCommand
Program=PowerShell
Parameter=netsh wlan connect name="#WiFi2Name#"

[mWiFi3Run]
Measure=Plugin
Plugin=RunCommand
Program=PowerShell
Parameter=netsh wlan connect name="#WiFi3Name#"

[mWiFi4Run]
Measure=Plugin
Plugin=RunCommand
Program=PowerShell
Parameter=netsh wlan connect name="#WiFi4Name#"

[mWiFi5Run]
Measure=Plugin
Plugin=RunCommand
Program=PowerShell
Parameter=netsh wlan connect name="#WiFi5Name#"

========================================
; Choose Website
========================================
[sButton]
Shape=Rectangle 0,0,10,10,50 | Extend FillAlpha | StrokeWidth 2 | Extend StrokeAlpha
FillAlpha=FillColor #Color5#
StrokeAlpha=StrokeColor 128,255,0,0

MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "StrokeColor #Color8#"] [!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# StrokeAlpha ""] [!UpdateMeter *] [!Redraw] 

LeftMouseUpAction=[!SetOptionGroup Search FillAlpha "FillColor #Color5#"][!SetOption #CURRENTSECTION# FillAlpha "FillColor #Color2#"][##CURRENTSECTION#][!ShowMeter InputBG][!SetOption SelectedButton Text [##CURRENTSECTION#Name]]  [!UpdateMeter *][!Redraw]

ToolTipText=[##CURRENTSECTION#Name]
DynamicVariables=1
Group=Search
Hidden=1
UpdateDivider=-1
X=5R
Y=r

[Site1]
Meter=Shape
MeterStyle=sButton
X=72
Y=8

[Site2]
Meter=Shape
MeterStyle=sButton

[Site3]
Meter=Shape
MeterStyle=sButton

[Site4]
Meter=Shape
MeterStyle=sButton

[Site5]
Meter=Shape
MeterStyle=sButton

[Site6]
Meter=Shape
MeterStyle=sButton

========================================
; Input Text
========================================
[InputBG]
Meter=Shape
Shape=Rectangle 0,0,205,24,12 | Fill Color 40,40,40,150 | StrokeWidth 2 | StrokeColor #Color5#
Group=WiFi | Search
Hidden=1
X=15
Y=25

[SelectedButton]
Meter=String
MeterStyle=sAllText
FontSize=10
FontColor=#Color8#
StringAlign=Center
Text=
Group=WiFi | Search
Hidden=1
X=117
Y=5r

[mInput]
Measure=Plugin
Plugin=InputText
FontSize=13
FontColor=128,255,0,200
StringStyle=Bold
StringAlign=Center
SolidColor=40,40,40,200
AntiAlias=1
FocusDismiss=1
DefaultValue=#CurrentInput#
OnDismissAction=[!SetVariable CurrentInput ""][Play "Dismiss.wav"][!Refresh]

Command1=["#Web#" "#Link1#"][!SetVariable CurrentInput "[mInput]"][!HideMeter InputBG][!UpdateMeter *][!Redraw]
Command2=["#Web#" "#Link2#"][!SetVariable CurrentInput "[mInput]"][!HideMeter InputBG][!UpdateMeter *][!Redraw]
Command3=["#Web#" "#Link3#"][!SetVariable CurrentInput "[mInput]"][!HideMeter InputBG][!UpdateMeter *][!Redraw]
Command4=["#Web#" "#Link4#"][!SetVariable CurrentInput "[mInput]"][!HideMeter InputBG][!UpdateMeter *][!Redraw]
Command5=["#Web#" "#Link5#"][!SetVariable CurrentInput "[mInput]"][!HideMeter InputBG][!UpdateMeter *][!Redraw]
Command6=["#Web#" "#Link6#"][!SetVariable CurrentInput "[mInput]"][!HideMeter InputBG][!UpdateMeter *][!Redraw]

Command7=[!WriteKeyValue Variables WiFi1Name "$UserInput$"][!UpdateMeter *][!Redraw]
Command8=[!WriteKeyValue Variables WiFi2Name "$UserInput$"][!UpdateMeter *][!Redraw]
Command9=[!WriteKeyValue Variables WiFi3Name "$UserInput$"][!UpdateMeter *][!Redraw]
Command10=[!WriteKeyValue Variables WiFi4Name "$UserInput$"][!UpdateMeter *][!Redraw]
Command11=[!WriteKeyValue Variables WiFi5Name "$UserInput$"][!UpdateMeter *][!Redraw]
X=25
Y=26
W=180
H=22
My aim is only to make the WiFi select Buttons stay green on refresh.
User avatar
death.crafter
Posts: 1070
Joined: April 24th, 2021, 8:13 pm

Re: !WriteKeyValueGroup required

Post by death.crafter »

sl23 wrote: August 28th, 2021, 5:22 pm Ok, here's the full config:

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
MouseActionCursor=0

[Metadata]
Name=RoundNet
Author=sl23
Information=Display internet speeds. Click 'SSID' for a web-search function. Select your site then enter your text.||Credits:||Adapted from "SimplyRound" Suite by Krzysztof "gronostaj" Smialek||JSMorley for the InputText example.||Thanks to eclectic-tech for the eBay Link.
Version=2021.8.25
License=CC BY 3.0

[Variables]
Color1=255,255,255,200
Color2=128,255,0
Color3=128,255,0,200
Color4=0,255,255
Color5=255,255,255,60
Color6=235,170,0,210
Color7=164,164,255,210
Color8=255,255,0,255

; --------------- WEB SEARCH ------------------
; Change the "Web" Variable to the path of your chosen Browser.
Web=#PROGRAMPATH#..\..\MyApps\PA.c\PortableApps\FirefoxPortable\FirefoxPortable.exe

CurrentInput=""

Site1Name=DuckDuckGo
Site2Name=GameFAQs
Site3Name=IMDB
Site4Name=YouTube
Site5Name=Discogs
Site6Name=eBay

Site1=[!CommandMeasure mInput "ExecuteBatch 1"]
Site2=[!CommandMeasure mInput "ExecuteBatch 2"]
Site3=[!CommandMeasure mInput "ExecuteBatch 3"]
Site4=[!CommandMeasure mInput "ExecuteBatch 4"]
Site5=[!CommandMeasure mInput "ExecuteBatch 5"]
Site6=[!CommandMeasure mInput "ExecuteBatch 6"]

Link1=https://duckduckgo.com/?q=$UserInput$
Link2=https://gamefaqs.gamespot.com/search?game=$UserInput$
Link3=https://www.imdb.com/find?s=tt&q=$UserInput$
Link4=https://www.youtube.com/search?q=$UserInput$
Link5=https://www.discogs.com/search/?q=$UserInput$
Link6=https://www.ebay.co.uk/sch/i.html?_from=R40&_trksid=p2380057.m570.l1313&_nkw=$UserInput$&_sacat=0

; --------------- WIFI CONNECTION ------------------
; Set the name of your WiFi connection. You must use the EXACT name of the connection.
WiFi1Name=Disconnect
WiFi2Name=sl.23-TT
WiFi3Name=sl23-G7
WiFi4Name=
WiFi5Name=
DownSpeed=32.00
UpSpeed=6.00
CurrentNetwork=sl.23-TT

WiFi1Set=[!CommandMeasure mInput "ExecuteBatch 7"]
WiFi2Set=[!CommandMeasure mInput "ExecuteBatch 8"]
WiFi3Set=[!CommandMeasure mInput "ExecuteBatch 9"]
WiFi4Set=[!CommandMeasure mInput "ExecuteBatch 10"]
WiFi5Set=[!CommandMeasure mInput "ExecuteBatch 11"]

; --------------- SHORTCUTS ------------------
APP1=ms-settings:network-status
APP2=
APP3=#Web#
APP4=path/to/your/email/application

NAME1=Network Settings
NAME2=
NAME3=Browser
NAME4=Email

========================================
; Background
========================================
[Bg]
Meter=Shape
Shape=Rectangle 0,0,230,70,35 | Fill Color 0,0,0,150 | StrokeWidth 2 | Extend StrokeAlpha
StrokeAlpha=Stroke Color #Color5#
DynamicVariables=1
X=2
Y=2

[Bg1]
Meter=Shape
Shape=Rectangle 0,0,60,60,50 | Fill Color 0,0,0,50 | StrokeWidth 2 | Extend StrokeAlpha
Shape2=Rectangle 9,9,42,42,50 | Fill Color 0,0,0,1 | StrokeWidth 2 | Extend StrokeAlpha2
Shape3=Rectangle 5,5,50,50,50 | Fill Color 0,0,0,1 | StrokeWidth 10 | Stroke Color 255,255,255,20
StrokeAlpha=Stroke Color #Color5#
StrokeAlpha2=Stroke Color #Color5#

LeftMouseUpAction=#APP1#
RightMouseUpAction=#APP2#

MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color4#"][!SetOption DLTitle FontColor "#Color2#"] [!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color5#"][!SetOption DLTitle FontColor "#Color1#"] [!UpdateMeter *][!Redraw]

DynamicVariables=1
ToolTipText=L - #NAME1##CRLF#R - #NAME2#
Group=WiFi | Search
X=7
Y=7

[BgLine]
Meter=Shape
Shape=Rectangle 67,42,100,1,0 | Fill Color #Color5# | StrokeWidth 0
DynamicVariables=1
Group=WiFi | Search

[Bg2]
Meter=Shape
Shape=Rectangle 0,0,60,60,50 | Fill Color 0,0,0,50 | StrokeWidth 2 | Extend StrokeAlpha
Shape2=Rectangle 9,9,42,42,50 | Fill Color 0,0,0,1 | StrokeWidth 2 | Extend StrokeAlpha2
Shape3=Rectangle 5,5,50,50,50 | Fill Color 0,0,0,1 | StrokeWidth 10 | Stroke Color 255,255,255,20
StrokeAlpha=Stroke Color #Color5#
StrokeAlpha2=Stroke Color #Color5#

LeftMouseUpAction=#APP3#
RightMouseUpAction=#APP4#

MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color4#"][!SetOption ULTitle FontColor "#Color2#"] [!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color5#"][!SetOption ULTitle FontColor "#Color1#"] [!UpdateMeter *][!Redraw]

DynamicVariables=1
ToolTipText=L - #NAME3##CRLF#R - #NAME4#
Group=WiFi | Search
X=167
Y=7

========================================
; STYLES
========================================
[sAllText]
FontFace=Trebuchet MS
StringStyle=Bold
StringAlign=Center
FontSize=12
FontColor=#Color1#
StringEffect=Shadow
FontEffectColor=0,0,0,150
AntiAlias=1
Group=WiFi | Search

[sHighlight]
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "128,255,0"] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor ""] [!UpdateMeter #CURRENTSECTION#] [!Redraw]

[sRoundBar]
LineStart=22
LineLength=28
LineWidth=2
StartAngle=(Rad(270))
Antialias=1
Solid=1
Group=WiFi | Search

========================================
; DL
========================================
[mDL]
Measure=NetIn
Substitute=".0":""
MinValue=0
MaxValue=(#DownSpeed# * 1048576)

[DLMeter]
Meter=Roundline
MeasureName=mDL
MeterStyle=sRoundBar
LineColor=#Color6#
Percentual=1
X=37
Y=37

[DLTitle]
Meter=String
MeterStyle=sAllText
FontFace=Segoe Fluent Icons
FontSize=16
Text=[\xE896]
X=38
Y=26

[DLValue]
Meter=String
MeasureName=mDL
MeterStyle=sAllText
StringAlign=Left
Text=%1B/s
AutoScale=1k
NumOfDecimals=1
InlineSetting=Size | 8
InlinePattern=^.* (.*)$
X=70
Y=8

========================================
; UL
========================================
[mUL]
Measure=NetOut
Substitute=".0":""
MinValue=0
MaxValue=(#UpSpeed# * 1048576)

[ULMeter]
Meter=Roundline
MeasureName=mUL
MeterStyle=sRoundBar
LineColor=#Color7#
Percentual=1
X=197
Y=37

[ULTitle]
Meter=String
MeterStyle=sAllText
FontFace=Segoe Fluent Icons
FontSize=16
Text=[\xE898]
X=198
Y=26

[ULValue]
Meter=String
MeasureName=mUL
MeterStyle=sAllText
StringAlign=Right
Text=%1B/s
AutoScale=1k
NumOfDecimals=1
InlineSetting=Size | 8
InlinePattern=^.* (.*)$
X=165
Y=47

========================================
; INTERNET
========================================
[mIP]
Measure=Plugin
Plugin=WebParser.dll
Url=http://checkip.dyndns.org
UpdateRate=14400
RegExp="(?siU)Address: (.*)</body>"
StringIndex=1
Substitute="":"N/A"

[IP]
Meter=String
MeterStyle=sAllText | sHighlight
MeasureName=mIP
FontSize=7
Text=IP: %1
InlineSetting=Size | 8
InlinePattern=^.* (.*)$
LeftMouseUpAction=[!ToggleMeterGroup IP] [!UpdateMeter *] [!Redraw]
Hidden=1
Group=IP
X=117
Y=29

[mSSID]
Measure=Plugin
Plugin=WiFiStatus
WiFiInfoType=SSID
Substitute="-1":"No WiFi","0":"#CurrentNetwork#"

IfMatch=No WiFi
IfMatchAction=[!SetOption WiFiIcon Text "[\xEB5E]"][!SetOption WiFi1 FillColor "#Color2#"] [!UpdateMeter *] [!Redraw]
IfNotMatchAction=[!SetOption WiFiIcon Text "[\xE701]"][!SetOption WiFi1 FillColor "#Color5#"] [!UpdateMeter *] [!Redraw]

IfMatch2=#CurrentNetwork#
IfMatchAction2=[!SetOption WiFi2 FillColor "#Color2#"] [!UpdateMeter *] [!Redraw]
IfNotMatchAction2=[!SetOption WiFi2 FillColor "#Color5#"] [!UpdateMeter *] [!Redraw]

IfMatch3=#CurrentNetwork#
IfMatchAction3=[!SetOption WiFi3 FillColor "#Color2#"] [!UpdateMeter *] [!Redraw]
IfNotMatchAction3=[!SetOption WiFi3 FillColor "#Color5#"] [!UpdateMeter *] [!Redraw]

DynamicVariables=1

[SSID]
Meter=String
MeterStyle=sAllText | sHighlight
MeasureName=mSSID
MeasureName2=mIP
FontSize=8
ClipString=1
Text=%1
NumOfDecimals=0
AutoScale=1
LeftMouseUpAction=[!ToggleMeterGroup IP] [!UpdateMeter *] [!Redraw]
Group=IP | WiFi | Search
X=117
Y=29
W=95

[SearchIcon]
Meter=String
MeterStyle=sAllText | sHighlight
FontFace=Segoe Fluent Icons
FontSize=10
Text=[\xF6FA]
LeftMouseUpAction=[!ToggleMeterGroup Search][!SetOption SelectedButton Text "Web Search"] [!UpdateMeter *] [!Redraw]
Group=WiFi
X=72
Y=54

[WiFiIcon]
Meter=String
MeterStyle=sAllText | sHighlight
FontFace=Segoe Fluent Icons
FontSize=12
Text=
LeftMouseUpAction=[!ToggleMeterGroup WiFi][!SetOption SelectedButton Text "Select Network"] [!UpdateMeter *] [!Redraw]
Group=Search
X=92
Y=-2r

========================================
; Choose WiFi
========================================
[sWiFiButton]
Shape=Rectangle 0,0,10,10,50 | Extend FillAlpha | StrokeWidth 2 | Extend StrokeAlpha
FillAlpha=FillColor #Color5#
StrokeAlpha=StrokeColor 128,255,0,0

MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "StrokeColor #Color8#"] [!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# StrokeAlpha ""] [!UpdateMeter *] [!Redraw] 

LeftMouseUpAction=[!CommandMeasure m#CURRENTSECTION#Run "Run"] [!SetOptionGroup WiFi FillAlpha "FillColor #Color5#"][!SetOption #CURRENTSECTION# FillAlpha "FillColor #Color2#"] [!SetOption SelectedButton Text [##CURRENTSECTION#Name]][!WriteKeyValue Variables CurrentNetwork [##CURRENTSECTION#Name]]  [!UpdateMeasure mIP][!UpdateMeter IP][!UpdateMeter SSID] [!UpdateMeter *] [!Redraw]

;[!WriteKeyValue WiFi1 FillAlpha "FillColor #Color5#"][!WriteKeyValue WiFi2 FillAlpha "FillColor #Color5#"][!WriteKeyValue WiFi3 FillAlpha "FillColor #Color5#"][!WriteKeyValue WiFi4 FillAlpha "FillColor #Color5#"][!WriteKeyValue WiFi5 FillAlpha "FillColor #Color5#"][!WriteKeyValue #CURRENTSECTION# FillAlpha "FillColor #Color2#"]
RightMouseUpAction=[##CURRENTSECTION#Set][!SetOptionGroup WiFi FillAlpha "FillColor #Color5#"][!SetOption #CURRENTSECTION# FillAlpha "FillColor #Color6#"] [!UpdateMeter *] [!Redraw]

ToolTipText=[##CURRENTSECTION#Name]
DynamicVariables=1
Group=WiFi
Hidden=1
UpdateDivider=-1
X=20r
Y=r

[WiFi1]
Meter=Shape
MeterStyle=sWiFiButton
X=72
Y=10

[WiFi2]
Meter=Shape
MeterStyle=sWiFiButton

[WiFi3]
Meter=Shape
MeterStyle=sWiFiButton

[WiFi4]
Meter=Shape
MeterStyle=sWiFiButton

[WiFi5]
Meter=Shape
MeterStyle=sWiFiButton

[mWiFi1Run]
Measure=Plugin
Plugin=RunCommand
Program=PowerShell
Parameter=netsh wlan disconnect

[mWiFi2Run]
Measure=Plugin
Plugin=RunCommand
Program=PowerShell
Parameter=netsh wlan connect name="#WiFi2Name#"

[mWiFi3Run]
Measure=Plugin
Plugin=RunCommand
Program=PowerShell
Parameter=netsh wlan connect name="#WiFi3Name#"

[mWiFi4Run]
Measure=Plugin
Plugin=RunCommand
Program=PowerShell
Parameter=netsh wlan connect name="#WiFi4Name#"

[mWiFi5Run]
Measure=Plugin
Plugin=RunCommand
Program=PowerShell
Parameter=netsh wlan connect name="#WiFi5Name#"

========================================
; Choose Website
========================================
[sButton]
Shape=Rectangle 0,0,10,10,50 | Extend FillAlpha | StrokeWidth 2 | Extend StrokeAlpha
FillAlpha=FillColor #Color5#
StrokeAlpha=StrokeColor 128,255,0,0

MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "StrokeColor #Color8#"] [!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# StrokeAlpha ""] [!UpdateMeter *] [!Redraw] 

LeftMouseUpAction=[!SetOptionGroup Search FillAlpha "FillColor #Color5#"][!SetOption #CURRENTSECTION# FillAlpha "FillColor #Color2#"][##CURRENTSECTION#][!ShowMeter InputBG][!SetOption SelectedButton Text [##CURRENTSECTION#Name]]  [!UpdateMeter *][!Redraw]

ToolTipText=[##CURRENTSECTION#Name]
DynamicVariables=1
Group=Search
Hidden=1
UpdateDivider=-1
X=5R
Y=r

[Site1]
Meter=Shape
MeterStyle=sButton
X=72
Y=8

[Site2]
Meter=Shape
MeterStyle=sButton

[Site3]
Meter=Shape
MeterStyle=sButton

[Site4]
Meter=Shape
MeterStyle=sButton

[Site5]
Meter=Shape
MeterStyle=sButton

[Site6]
Meter=Shape
MeterStyle=sButton

========================================
; Input Text
========================================
[InputBG]
Meter=Shape
Shape=Rectangle 0,0,205,24,12 | Fill Color 40,40,40,150 | StrokeWidth 2 | StrokeColor #Color5#
Group=WiFi | Search
Hidden=1
X=15
Y=25

[SelectedButton]
Meter=String
MeterStyle=sAllText
FontSize=10
FontColor=#Color8#
StringAlign=Center
Text=
Group=WiFi | Search
Hidden=1
X=117
Y=5r

[mInput]
Measure=Plugin
Plugin=InputText
FontSize=13
FontColor=128,255,0,200
StringStyle=Bold
StringAlign=Center
SolidColor=40,40,40,200
AntiAlias=1
FocusDismiss=1
DefaultValue=#CurrentInput#
OnDismissAction=[!SetVariable CurrentInput ""][Play "Dismiss.wav"][!Refresh]

Command1=["#Web#" "#Link1#"][!SetVariable CurrentInput "[mInput]"][!HideMeter InputBG][!UpdateMeter *][!Redraw]
Command2=["#Web#" "#Link2#"][!SetVariable CurrentInput "[mInput]"][!HideMeter InputBG][!UpdateMeter *][!Redraw]
Command3=["#Web#" "#Link3#"][!SetVariable CurrentInput "[mInput]"][!HideMeter InputBG][!UpdateMeter *][!Redraw]
Command4=["#Web#" "#Link4#"][!SetVariable CurrentInput "[mInput]"][!HideMeter InputBG][!UpdateMeter *][!Redraw]
Command5=["#Web#" "#Link5#"][!SetVariable CurrentInput "[mInput]"][!HideMeter InputBG][!UpdateMeter *][!Redraw]
Command6=["#Web#" "#Link6#"][!SetVariable CurrentInput "[mInput]"][!HideMeter InputBG][!UpdateMeter *][!Redraw]

Command7=[!WriteKeyValue Variables WiFi1Name "$UserInput$"][!UpdateMeter *][!Redraw]
Command8=[!WriteKeyValue Variables WiFi2Name "$UserInput$"][!UpdateMeter *][!Redraw]
Command9=[!WriteKeyValue Variables WiFi3Name "$UserInput$"][!UpdateMeter *][!Redraw]
Command10=[!WriteKeyValue Variables WiFi4Name "$UserInput$"][!UpdateMeter *][!Redraw]
Command11=[!WriteKeyValue Variables WiFi5Name "$UserInput$"][!UpdateMeter *][!Redraw]
X=25
Y=26
W=180
H=22
My aim is only to make the WiFi select Buttons stay green on refresh.
What is #CurrentNetwork#?
from the Realm of Death
My Current Desktop
User avatar
sl23
Posts: 893
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: !WriteKeyValueGroup required

Post by sl23 »

Well, because I couldn't use the !WriteKeyValue as a group, I looked for other ways to set the buttons to the neutral or off colour.

One way was to use that variable #CurrentNetwork# so when its set use the SSID and IfMatch to reset the button colour.

Btw, thanks for taking a look.
User avatar
death.crafter
Posts: 1070
Joined: April 24th, 2021, 8:13 pm

Re: !WriteKeyValueGroup required

Post by death.crafter »

sl23 wrote: August 28th, 2021, 5:41 pm Well, because I couldn't use the !WriteKeyValue as a group, I looked for other ways to set the buttons to the neutral or off colour.

One way was to use that variable #CurrentNetwork# so when its set use the SSID and IfMatch to reset the button colour.

Btw, thanks for taking a look.
Oh my god lmao.

It will be

[!SetOption Wifi2 FillAlpha "Fill Color #Color2#"][!UpdateMeter WiFi2][!Redraw]

and not

[!SetOption Wifi2 FillColor "#Color2#"][!UpdateMeter WiFi2][!Redraw]
from the Realm of Death
My Current Desktop
User avatar
sl23
Posts: 893
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: !WriteKeyValueGroup required

Post by sl23 »

Argh! What a din! :oops: :rolmfao:
Thank you :thumbup:
User avatar
sl23
Posts: 893
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: !WriteKeyValueGroup required

Post by sl23 »

It still isn't working! All buttons are green on refresh :confused:
User avatar
sl23
Posts: 893
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: !WriteKeyValueGroup required

Post by sl23 »

Ok, I got it, #CurrentNetwork# wasn't required! :?