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

Help: Rainmeter Skins • Re: FileView skin: ToggleConfig CurrentFile

$
0
0
Ok, I don't get it.

I created two measures with Type=FilePath, even though I see the need for only one, but I made two.
Your RegEx substitutes don't work, but that's probably cause I've done it wrong, I know that much! :sly:

Been trying to figure it out for hours now and the closest I can get is to toggle the first item in the folder, not the one I'm R-clicking on. So if I click on Index5 or Index2 or Index 9, it toggles Index1 only.

Everything else works as it should. I just can't get this thing to work. Here's my code, but I had to use my own Substitutes to get this far as yours wouldn't do anything.

I then managed to get this code to work, not quite how I want it to, as it would be better if you could click skin1 to load it, then click skin2, a variant, and unload skin1 at the same time you load skin2. My code also has an issue with opening the folder when hovering the path now that I removed "Skins\" from mPath using Substitute. But that was the only way I could get the path.

Please help! O.O
Thanks. :thumbup:

Code:

[Rainmeter]Update=500BackgroundMode=2SolidColor=0,0,0,1AccurateText=1DynamicWindowSize=1MouseActionCursor=0OnRefreshAction=[Metadata]Name=Skin LauncherAuthor=sl23Information=Skin LauncherVersion=2024.6.27License=CC BY 3.0[Variables]Aqua=0,255,255AquaDark=#Aqua#,200Blue=64,143,191Green=128,255,0Orange=255,170,0OrangeDark=255,128,0Red=255,100,100Stroke=255,255,255,10Trans=0,0,0,1White=255,255,255,150White20=255,255,255,20White40=255,255,255,40White60=255,255,255,60Yellow=255,255,0BgFill=0,0,0,10ConfigPath=TESTIconSize=SmallPath=#CURRENTPATH#ShortcutsFile=========================================; Background========================================[Bg]Meter=ShapeShape=Rectangle 0,0,270,48,5 | Fill Color 0,0,0,200 | StrokeWidth 2 | Stroke Color #White60#Shape2=Rectangle 12,20,248,2,2 | Fill Color #White#MouseOverAction=[!ShowMeterGroup Icon][!ShowMeterGroup Info][!ShowMeter Button][!UpdateMeterGroup *][!Redraw]MouseLeaveAction=[!HideMeterGroup Icon][!HideMeterGroup Info][!HideMeter Button][!UpdateMeterGroup *][!Redraw]MiddleMouseUpAction=[!Refresh]X1MouseUpAction=[!CommandMeasure mPath "PreviousFolder"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]MouseScrollUpAction=[!CommandMeasure mPath "IndexUp"][!SetOption Name Text "[mName]"][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]MouseScrollDownAction=[!CommandMeasure mPath "IndexDown"][!SetOption Name Text "[mName]"][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]X=1Y=1[BgIcons]Meter=ShapeShape=Rectangle 0,0,250,20,2 | Fill Color #Trans# | StrokeWidth 0MouseOverAction=[!HideMeterGroup Info][!Redraw]MouseLeaveAction=[!ShowMeterGroup Info][!Redraw]Group=ButtonX=11Y=26========================================; BUTTON========================================[Button]Meter=ShapeShape=Rectangle 0,0,10,10,5 | FillColor #Trans# | StrokeWidth 2 | Extend StrokeAlphaStrokeAlpha=StrokeColor #White#DynamicVariables=1LeftMouseUpAction=[!CommandMeasure mPath "PreviousFolder"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]MiddleMouseUpAction=[!Refresh]MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Yellow#"][!UpdateMeter *][!Redraw]MouseLeaveAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #White#"][!UpdateMeter *][!Redraw]ToolTipIcon=InfoToolTipTitle=ToolTipText="L - Back#CRLF#M - Refresh"Hidden=1Group=ButtonX=10Y=7========================================; STYLES========================================[sAllText]FontFace=Trebuchet MSStringStyle=BoldStringAlign=CenterCenterFontSize=9FontColor=#White#SolidColor=#Trans#AntiAlias=1DynamicVariables=1UpdateDivider=-1Hidden=1Group=Info[sLeft]StringAlign=LeftCenter[sHighlight]MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Green#"] [!UpdateMeter #CURRENTSECTION#] [!Redraw]MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor ""] [!UpdateMeter #CURRENTSECTION#] [!Redraw]========================================; NAME========================================[Name]Meter=StringMeterStyle=sAllTextFontColor=#Yellow#Text=UpdateDivider=-1Hidden=1Group=NameX=135Y=12========================================; APP BUTTONS========================================[sIcon]AntiAlias=1ImageAlpha=65Hidden=1Group=IconDynamicVariables=1LeftMouseUpAction=[!CommandMeasure m#CURRENTSECTION# "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!SetOption Name Text "[mName]"][!UpdateMeter *][!Redraw]RightMouseUpAction=[!ToggleConfig [mPath] "#File#"]MouseOverAction=[!SetOption #CURRENTSECTION# ImageAlpha "255"][!SetOption mR1 Index "#CURRENTSECTION#"][!UpdateMeasure mR1][!SetOption mName Index "#CURRENTSECTION#"][!UpdateMeasure mName][!SetVariable File "[mName].ini"][!SetOption Name Text "[mName]"][!ShowMeterGroup Name][!UpdateMeter Name][!UpdateMeter *][!Redraw]MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageAlpha ""][!SetOption mR1 Index ""][!UpdateMeasure mR1][!SetVariable File ""][!SetOption mName Index ""][!UpdateMeasure mName][!SetVariable File ""][!SetOption Name Text ""][!HideMeterGroup Name][!UpdateMeter Name][!UpdateMeter *][!Redraw]X=25rY=r[mPath]Measure=PluginPlugin=FileViewPath="#SkinsPath##ConfigPath#"ShowDotDot=0HideExtensions=1Count=10Group=ChildrenSubstitute="#SkinsPath#":""[mName]Measure=PluginPlugin=FileViewPath=[mPath]Type=FileNameIndex=#Index#Group=ChildrenDynamicVariables=1[mR1]Measure=PluginPlugin=FileViewPath="#SkinsPath#"Type=FilePath Index=#Index#;RegExSubstitute=1;Substitute="(?:^#SKINSPATH#|^.*$)":""Group=Children;Substitute="#SkinsPath#":"Skins\"[mR2]Measure=PluginPlugin=FileViewPath="#SkinsPath#"Type=FilePath Index=#Index#;RegExSubstitute=1;Substitute="(?:^#SKINSPATH#|^.*$)":""Group=ChildrenSubstitute="#SkinsPath#":""[m1]Measure=PluginPlugin=FileViewPath=[mPath]Type=IconIconSize=#IconSize#Index=1Group=Children[m2]Measure=PluginPlugin=FileViewPath=[mPath]Type=IconIconSize=#IconSize#Index=2Group=Children[m3]Measure=PluginPlugin=FileViewPath=[mPath]Type=IconIconSize=#IconSize#Index=3Group=Children[m4]Measure=PluginPlugin=FileViewPath=[mPath]Type=IconIconSize=#IconSize#Index=4Group=Children[m5]Measure=PluginPlugin=FileViewPath=[mPath]Type=IconIconSize=#IconSize#Index=5Group=Children[m6]Measure=PluginPlugin=FileViewPath=[mPath]Type=IconIconSize=#IconSize#Index=6Group=Children[m7]Measure=PluginPlugin=FileViewPath=[mPath]Type=IconIconSize=#IconSize#Index=7Group=Children[m8]Measure=PluginPlugin=FileViewPath=[mPath]Type=IconIconSize=#IconSize#Index=8Group=Children[m9]Measure=PluginPlugin=FileViewPath=[mPath]Type=IconIconSize=#IconSize#Index=9Group=Children[m10]Measure=PluginPlugin=FileViewPath=[mPath]Type=IconIconSize=#IconSize#Index=10Group=Children========================================; INFO========================================[mFolderCount]Measure=PluginPlugin=FileViewPath=[mPath]Type=FolderCountGroup=Children[mFileCount]Measure=PluginPlugin=FileViewPath=[mPath]Type=FileCountGroup=Children[PathTitle]Meter=StringMeasureName=mPathMeterStyle=sAllText | sLeft | sHighlightText=[mPath]ToolTipText=L- Open Folder#CRLF#Folders: [mFolderCount] / Files: [mFileCount]LeftMouseUpAction=[mPath]X=30Y=12========================================; METERS========================================[1]Meter=ImageMeasureName=m1MeterStyle=sIconX=16Y=17r[2]Meter=ImageMeasureName=m2MeterStyle=sIcon[3]Meter=ImageMeasureName=m3MeterStyle=sIcon[4]Meter=ImageMeasureName=m4MeterStyle=sIcon[5]Meter=ImageMeasureName=m5MeterStyle=sIcon[6]Meter=ImageMeasureName=m6MeterStyle=sIcon[7]Meter=ImageMeasureName=m7MeterStyle=sIcon[8]Meter=ImageMeasureName=m8MeterStyle=sIcon[9]Meter=ImageMeasureName=m9MeterStyle=sIcon[10]Meter=ImageMeasureName=m10MeterStyle=sIcon

Statistics: Posted by sl23 — Yesterday, 8:56 pm



Viewing all articles
Browse latest Browse all 781

Trending Articles