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

Help: Rainmeter Skins • Get Skin Setting 2

$
0
0
This is a continuation of a post I made about retreiving a skin's settings: https://forum.rainmeter.net/viewtopic.php?t=44576

I've made another post because I'm experiencing a relatively different issue now. Using a solution by Yincognito (https://forum.rainmeter.net/viewtopic.php?p=227620#p227620), I was able to produce this:

Code:

[@SkinSettings.TargConfig]Measure=StringString=#CURRENTCONFIG#[@SkinSettings]Measure=WebParserUpdateRate=1Url=file://#SETTINGSPATH#Rainmeter.iniRegExp=(?siU)\[[@SkinSettings.TargConfig:EscapeRegExp]\](.*)(?=\[|$)CodePage=1200UpdateDivider=-1FinishAction=[!UpdateMeasureGroup @Skin.Settings][@SkinSettings.ClickThrough]Measure=WebParserUrl=[@SkinSettings]StringIndex=1StringIndex2=1RegExp=(?siU)\RClickThrough=(.*)(?:\R|$)Group=@Skin.SettingsSubstitute="":"N/A"UpdateDivider=-1[@SkinSettings.Draggable]Measure=WebParserUrl=[@SkinSettings]StringIndex=1StringIndex2=1RegExp=(?siU)\RDraggable=(.*)(?:\R|$)Group=@Skin.SettingsSubstitute="":"N/A"UpdateDivider=-1[@SkinSettings.KeepOnScreen]Measure=WebParserUrl=[@SkinSettings]StringIndex=1StringIndex2=1RegExp=(?siU)\RKeepOnSCreen=(.*)(?:\R|$)Group=@Skin.SettingsSubstitute="":"N/A"UpdateDivider=-1[@SkinSettings.SnapEdges]Measure=WebParserUrl=[@SkinSettings]StringIndex=1StringIndex2=1RegExp=(?siU)\RSnapEdges=(.*)(?:\R|$)Group=@Skin.SettingsSubstitute="":"N/A"UpdateDivider=-1[@SkinSettings.AlwaysOnTop]Measure=WebParserUrl=[@SkinSettings]StringIndex=1StringIndex2=1RegExp=(?siU)\RAlwaysOnTop=(.*)(?:\R|$)Group=@Skin.SettingsSubstitute="":"N/A"UpdateDivider=-1[@SkinSettings.WindowX]Measure=WebParserUrl=[@SkinSettings]StringIndex=1StringIndex2=1RegExp=(?siU)\RWindowX=(.*)(?:\R|$)Group=@Skin.SettingsSubstitute="":"N/A"UpdateDivider=-1[@SkinSettings.WindowY]Measure=WebParserUrl=[@SkinSettings]StringIndex=1StringIndex2=1RegExp=(?siU)\RWindowY=(.*)(?:\R|$)Group=@Skin.SettingsSubstitute="":"N/A"UpdateDivider=-1[@SkinSettings.LoadOrder]Measure=WebParserUrl=[@SkinSettings]StringIndex=1StringIndex2=1RegExp=(?siU)\RLoadOrder=(.*)(?:\R|$)Group=@Skin.SettingsSubstitute="":"N/A"UpdateDivider=-1LogSubstringErrors=1[@SkinSettings.OnHover]Measure=WebParserUrl=[@SkinSettings]StringIndex=1StringIndex2=1RegExp=(?siU)\ROnHover=(.*)(?:\R|$)Group=@Skin.SettingsSubstitute="":"N/A"UpdateDivider=-1[@SkinSettings.AlphaValue]Measure=WebParserUrl=[@SkinSettings]StringIndex=1StringIndex2=1RegExp=(?siU)\RAlphaValue=(.*)(?:\R|$)Group=@Skin.SettingsSubstitute="":"N/A"UpdateDivider=-1[@SkinSettings.AutoSelectScreen]Measure=WebParserUrl=[@SkinSettings]StringIndex=1StringIndex2=1RegExp=(?siU)\RAutoSelectScreen=(.*)(?:\R|$)Group=@Skin.SettingsSubstitute="":"N/A"UpdateDivider=-1
The issue being that, for skins that dont have a setting already defined (e.g. LoadOrder, AlphaValue, etc.), I get a RegExp matching error (-1) error. Im not sure how to combat this. I read a post about using Lookahead assertations but am Not sure how exactly to implement that with my case.
Screenshot 2024-10-10 204121.png
A solution would be much appreciated! :pray:

Statistics: Posted by Hazrd — Yesterday, 12:38 pm — Replies 2 — Views 107



Viewing all articles
Browse latest Browse all 871

Trending Articles