I need a little bit of help to create my first skin.
What I want to do:
A switch button to activate/deactivate Wifi MAC Filter.
(I have 2 python scripts that work well : one to get the filter status, and another one to switch it ON/OFF.)
It should work that way:
Have the "get filter status" python script run every 10 sec.
Display an image depending on that python script result.
Execute the "filter switch" script when clicking on that image.
What my rainmeter looks like at the moment (there are certainly a lot of things I don't do the right way, but I'm ready to learn!):
[Rainmeter]
Update=10000
DynamicWindowSize=1
AccurateText=1
[getFilter]
;how can I run this every 10 seconds?
Measure=Plugin
Plugin=RunCommand
Parameter=python.exe #@#Scripts\getFilter.py
State=Hide
[switchFilter]
Measure=Plugin
Plugin=RunCommand
Parameter=python.exe #@#Scripts\switchFilter.py
State=Hide
[MeasureImage]
MeasureName=getFilter
IfMatch=True
IfMatchAction=[!SetOption MeterImage ImageName #@#Images\wifiON.ico]
IfMatchAction=[!SetOption MeterImage ImageName #@#Images\wifiOFF.ico]
;IfMatchMode=1
[MeterImage]
Meter=Image
;default image to be displayed at the beginnig in case getFilter did not run yet
ImageName=#@#Images\wifi.ico
W=32
H=32
X=0
Y=0
LeftMouseUpAction=[!CommandMeasure switchFilter "Run"]
Thanks in advande for you help!
Last edited by YPO on May 15th, 2021, 12:29 pm, edited 4 times in total.