I thought this would be interesting for you guys!
While i was updating my Suite to 4th ver i have added an ability to show file name without a path and file extension and also i wanted it to be done in Rainmeter natively...so, here is my method.
latest beta required to be installed for proper work!
Code: Select all
[Rainmeter]
Update=1000
[Variables]
ImagePath=%USERPROFILE%\Pictures\
SubFolders=1
FileFilter=*.jpg;*.jpeg;*.png;*.bmp
UpdateRate=600
[mPic]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#ImagePath#
FileFilter=#FileFilter#
Subfolders=#SubFolders#
UpdateDivider=#UpdateRate#
Disabled=0
[FileName_Ext]
Measure=TIME
Format=[mPic]
DynamicVariables=1
RegExpSubstitute=1
Substitute="\\(.*)\\":"","^.:":"","...\D$":""
UpdateDivider=#UpdateRate#
Disabled=0
[mSlideshow]
Meter=IMAGE
MeasureName=mPic
MeasureName2=FileName_Ext
X=0
Y=0
W=250
Hidden=0
ToolTipText=" %2"
ToolTipType=0
UpdateDivider=#UpdateRate#
...i know, that the regular expressions pattern which i used is not perfect, but it works...help me to improve it