Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1489

General Discussion • Re: Calling Python

$
0
0
OK - I am running into a Rainmeter logic problem. I click the Recalculate button and the python script is fired and the colors are updated in Varaibles.inc, but the skin doesn't refresh with the new colors! I have tried a BUNCH of different things, and even tried a very unhelpful LLM. Can someone please point out what is probably easy?

Code:

[Rainmeter]Update=1000AccurateText=1DynamicWindowSize=1OnRefreshAction=[!CommandMeasure MeasureGetWallpaperImage "Run"][Variables]@Include=#@#Variables.inc; ✅ Retrieve the current wallpaper file path[MeasureGetWallpaperImage]Measure=PluginPlugin=RunCommandProgram=PowershellParameter="-NoProfile -ExecutionPolicy Bypass -Command & '#@#GetWallpaper.ps1'"State=HideOutputType=ANSI; ✅ Button to Recalculate Colors & Refresh Immediately[MeterRecalculateButton]Meter=StringText="Recalculate Colors"X=0Y=850FontColor=255,255,255FontSize=14AntiAlias=1DynamicVariables=1SolidColor=50,50,50,255Padding=5,5,5,5LeftMouseUpAction=[!CommandMeasure MeasureRunPython "Run"]; ✅ Run Python and Trigger Full Skin Refresh[MeasureRunPython]Measure=PluginPlugin=RunCommandProgram=PowershellParameter="-NoProfile -ExecutionPolicy Bypass -Command & 'C:\Python312\python.exe' '#@#RainColors.py'"State=HideOutputType=ANSIDynamicVariables=1Timeout=5000OnFinishAction=[!UpdateMeasure MeasureGetWallpaperImage][!UpdateMeterGroup Colors][!Redraw]; 🟦 Color Swatch: Background1[MeterSwatchBackground1]Meter=ShapeGroup=ColorsShape=Rectangle 0,0,50,50 | StrokeWidth 2 | StrokeColor 0,0,0 | Fill Color #Background1#X=0Y=0DynamicVariables=1AntiAlias=1[MeterSwatchBackground1Text]Meter=StringGroup=ColorsText=Background1X=60Y=15FontColor=255,255,255FontSize=12AntiAlias=1DynamicVariables=1

Statistics: Posted by ms310 — Yesterday, 9:11 pm



Viewing all articles
Browse latest Browse all 1489

Trending Articles