It is currently March 28th, 2024, 10:54 am

FolderInfo plugin

Share and get help with Plugins and Addons
Post Reply
FlorianG
Posts: 20
Joined: September 18th, 2013, 11:31 am

FolderInfo plugin

Post by FlorianG »

Hi there,

is this possible to get the folder name with this plugin?

look at this skin:

Code: Select all

[Rainmeter]
Author=Me
MouseOverAction=!Execute [!ShowMeter Settings][!Redraw]
MouseLeaveAction=!Execute [!HideMeter Settings][!Redraw]
OnRefreshAction=!Execute [!ZPos -2 "Windows_8\Panels\#Title#" "#Title#"]
MiddleMouseUpAction=!Execute [!ActivateConfig "Windows_8\Panels\#Title#"]
#RightMouseUpAction=!None
Update=86400000

[Metadata]
Version=1.0
Information=Folder_1 Panel
License=Creative Commons Attribution-NonCommercial-NoDerivs 3.0

[Variables]
Title=Folder_1
@include1=#@#Config\Panels\#Title#\UserVariables.inc
@include2=#@#Variables\UserVariables.inc
@include3=#@#Variables\Languages\lang.inc
@include4=#@#Layout\Layout.inc

[bg]
Meter=Image
SolidColor=#SolidColor#
X=4
Y=4
W=#Width#
H=#Height#

[Overlay]
Meter=Image
ImageName=#@#Overlay\#Overlay#
X=4
Y=4
W=#Width#
H=#Height#
LeftMouseUpAction=!Execute ["#Folder#"]

[Border]
Meter=Image
ImageName=#@#Border\126x126.png
X=4
Y=4
W=#Width#
H=#Height#

[Icon]
Meter=Image
ImageName=Icon.png
X=4
Y=4
W=#Width#
H=#Height#

[Text]
Meter=String
MeterStyle=Textstyle
FontColor=#SolidColor#
X=26
Y=78
W=80
H=20
Text=#Folder#
StringEffect=None
Clipstring=0

[Settings]
Meter=Image
ImageName=#@#Addons\Image\Settings.png
H=14
W=14
X=110
Y=10
Hidden=1
LeftMouseUpAction=!Execute ["#@#Addons\RainRGB\RainRGB4.exe" "VarName=SolidColor" "FileName=#@#Config\Panels\#Title#\UserVariables.inc" "Alpha=255" "RefreshConfig=Windows_8\Panels\#Title#"]
RightMouseUpAction=!Execute ["#@#Addons\RainFile\RainFile.exe" "Folder" "Variables" "Folder" "#@#Config\Panels\#Title#\UserVariables.inc" "C:\" "DPNE"]
i need the name of the folder that i selected with rainfile in the UserVariables. all what i get is the path. If i change the pieces DPNE to PN ill get the folder name, but the link wont work now. is there any chance to get the foldername with a plugin like the FolderInfo or FileInfo plugin?

i tried this, but it dosnt work

Code: Select all

[MeasureFolder]
Measure=Plugin
Plugin=FileView
Path="#Folder#"
ShowDotDot=0
ShowFolder=0
Count=3

[Text]
Meter=String
MeasureName=MeasureFolder
FontColor=#SolidColor#
X=26
Y=78
W=80
H=20
Text=%1
StringEffect=None
Clipstring=0
any tipps for me?
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: FolderInfo plugin

Post by moshi »

Code: Select all

[MeasureFolder]
Measure=Calc
Formula=1
DynamicVariables=1
RegExpSubstitute=1
Substitute="1":"#Folder#","^.*\\(.*?)$":"\1"
FlorianG
Posts: 20
Joined: September 18th, 2013, 11:31 am

Re: FolderInfo plugin

Post by FlorianG »

Wohoo! it works perfect for me! Thanks al lot!!! :thumbup:
Post Reply