Important: Bear in mind I am still a novice at RM scripting.
Current Issue:
I'm having a little trouble though getting the Bar to work correctly in displaying the percentage of the folder being displayed. Instead of showing the percentage of the folder it shows 100% being viewed all the time.
Note: Once I get this working I'll move on to getting Y to move accordingly.
Here is the bar and measures in question:
Code: Select all
[ScrollPosition]
Meter=Bar
MeasureName=MeasureScrollBarHeight
BarColor=150,150,150,200
SolidColor=100,100,100,255
x=r
y=(0*10)+#MenuY#+16
h=420
w=9
BarOrientation=Vertical
Flip=1
AntiAlias=1
Hidden=1
[MeasureScrollBarHeight]
Measure=Calc
Formula=(100 / ((MeasureFolderCount + MeasureFileCount) / #ItemCount#))
Disabled=1
FinishAction=[!UpdateMeter ScrollPosition]
[MeasureFolderCount]
Measure=Plugin
Plugin=FileView
Path=[MeasurePath]
Type=FolderCount
Disabled=1
Group=StartMenuMeasure
[MeasureFileCount]
Measure=Plugin
Plugin=FileView
Path=[MeasurePath]
Type=FileCount
Disabled=1
Group=StartMenuMeasure
[MeasurePath]
Measure=Plugin
Plugin=FileView
Path="#StartMenuPath#"
ShowHidden=0
HideExtensions=1
Count=#ItemCount#
FinishAction=[!EnableMeasure MeasureScrollBarHeight][!ShowMeter ScrollPosition][!UpdateMeterGroup StartMenu]
Disabled=1
Group=StartMenuMeasure
Code: Select all
StartMenuPath=%SystemDrive%\ProgramData\Microsoft\Windows\Start Menu\Programs
MenuY=66
ItemCount=25
Move your mouse to the left of it and it should turn a solid dark grey (this is a bug relating to the striped down version, but not the full), which is supposed to be the secondary color of the bar (when I get the bar working this will be transparent).
If you try scrolling the bar will turn a solid light gray, but not in proportion to the amount of files being shown. This is the problem in question that I need help with.
Old Issue (ignore):
Is it possible to measure the number of folders and/or files in a folder fileview is displaying (not the number of slots that fileview can show something in, the number that is in the folder)?
This is what I'm trying to work out:
Code: Select all
[MeasureScrollPosition]
Measure=Calc
Formula=(MeasureFolderCount + MeasureFileCount)
Hidden=1
Group=StartMenu
Code: Select all
[ScrollPosition]
Meter=Bar
MeasureName=MeasureScrollPosition
x=r
y=r
BarOrientation=Vertical
BarImage=#@#Images\Scroll.png
Imagetint=123,123,123,255
Flip=1
AntiAlias=1
Hidden=1
Group=StartMenu
Thanks!