Code: Select all
[Rainmeter]
Update=-1
DefaultUpdateDivider=-1
AccurateText=1
DynamicWindowSize=1
Group=FileExplorer
MouseScrollUpAction=[!SetVariable PreviousCount "[mCurrentCount]"][!SetOption mCurrentCount Formula "[mCurrentCount] - 1"][!UpdateMeasure mCurrentCount][!UpdateMeasure mDifferenceCount][!UpdateMeasure mPath]
MouseScrollDownAction=[!SetVariable PreviousCount "[mCurrentCount]"][!SetOption mCurrentCount Formula "[mCurrentCount] + 1"][!UpdateMeasure mCurrentCount][!UpdateMeasure mDifferenceCount][!UpdateMeasure mPath]
[mPath]
Measure=Plugin
Plugin=FileView
Path=#Path#
Count=18
ShowDotDot=0
HideExtensions=#Extensions#
SortType=#SortType#
SortDateType=#SortDateType#
WildcardSearch=#Search#
Recursive=#Recursive#
ShowHidden=#Hidden#
ShowSystem=#System#
SortAscending=#SortAscending#
DynamicVariables=1
Substitute="%USERPROFILE%":"[MeasureUserName]"
FinishAction=[!UpdateMeasureGroup Children][!UpdateMeterGroup Index][!UpdateMeasure mHoverAction][!Redraw]
OnChangeAction=[!WriteKeyValue Variables Path "#Path#" "#@#\Includes\Variables.inc"][!SetOption mCurrentCount Formula "0"][!UpdateMeasure mCurrentCount][!UpdateMeasure mParentFolder][!UpdateMeterGroup Controls]
[mFileCount]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileCount
Group=Children
OnChangeAction=[!UpdateMeasure mTotalCount]
[mTotalCount]
Measure=Calc
Formula=(mFolderCount + mFileCount)
OnChangeAction=[!UpdateMeterGroup BackgroundBorder][!UpdateMeterGroup HDividers][!UpdateMeterGroup VDividers][!UpdateMeterGroup Scroll][!UpdateMeterGroup FolderHover][!UpdateMeasure mGroupHide][!Redraw]
OnUpdateAction=[!UpdateMeasure mIndex0Name]
[mCurrentCount]
Measure=Calc
Formula=0
IfCondition=(mCurrentCount < 0)
IfTrueAction=[!SetOption mCurrentCount Formula "0"][!UpdateMeasure mCurrentCount]
IfCondition2=(mCurrentCount > (mTotalCount - 18))
IfTrueAction2=[!SetOption mCurrentCount Formula "(mTotalCount - 18)"][!UpdateMeasure mCurrentCount]
OnUpdateAction=[!UpdateMeasure mScrollbar][!UpdateMeterGroup Scroll]
[mDifferenceCount]
Measure=Calc
IfCondition=(mCurrentCount < #PreviousCount#)
IfTrueAction=[!CommandMeasure mPath "IndexUp"][!SetVariable PreviousCount "(#PreviousCount# - 1)"]
IfCondition2=(mCurrentCount > #PreviousCount#)
IfTrueAction2=[!CommandMeasure mPath "IndexDown"][!SetVariable PreviousCount "(#PreviousCount# + 1)"]
IfCondition3=(mCurrentCount <> #PreviousCount#)
IfTrueAction3=[!UpdateMeasure mDifferenceCount]
IfConditionMode=1
DynamicVariables=1
[mScrollbar]
Measure=Calc
Formula=(((mTotalCount - 18) - mCurrentCount) / (mTotalCount - 18))