It is currently April 19th, 2024, 1:21 pm

Two Questions: FileVIew & FolderInfo

Get help with creating, editing & fixing problems with skins
User avatar
CodeCode
Posts: 1365
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Two Questions: FileVIew & FolderInfo

Post by CodeCode »

The structure of the folder and file elements is based on the first index of this limited (not intentionally) FileView arrangement.

The element of the C drive -= which is the first index -= does not write "C:\" to its children like all the other 8 drive folders.

What you see is the part that I do not understand.

I can navigate any of the first indexes down and down through the file list. The drives of This PC folder all work so in that part i am happy, but for all of the sub folders, the folder is not being read past that point (the first index of any folder).

If you look at the click options of the C drive code in the inc file -it is not the same as the other indexes. The main difference is the writekeyvalue for the 8 other root directories write the root name, e.g. the variable is not written for the C drive, but IS for all of the other root directories.

The weird thing is, that if I code the C root file like the other root folders, it breaks everything e.g. the root directories no longer successfully allow navigation past the root drive.

How it is written seems to indicate that if the right combination of codes and variables (whatever those values actually are) will allow the correct navigation of the root and subdirectories as it really should be correct.

So I posted that rmskin, broken as it is, just needs some help to work properly. I am asking here, for ideas on how to correct the broken path commands.

I know it can be done - I somehow had the right combination and all of the indexes were navigable in the correct fashion.

I am calling out all the code-brains, to help fix this (believed to be impossible even at this point).

I hope i made some sense, in how I have described the 'working' and 'not working' parts.

Thanks for any time spent figuring this out.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Two Questions: FileVIew & FolderInfo

Post by death.crafter »

If I remember correctly, you made something similar in the past, which worked perfectly.

So I would suggest you modify that skin to get what you want currently.

I am saying this cause there are a lot of bugs and logical flaws where I would like to make it from scratch rather than debugging it.
from the Realm of Death
User avatar
CodeCode
Posts: 1365
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Two Questions: FileVIew & FolderInfo

Post by CodeCode »

death.crafter wrote: October 21st, 2021, 7:13 pm If I remember correctly, you made something similar in the past, which worked perfectly.

So I would suggest you modify that skin to get what you want currently.

I am saying this cause there are a lot of bugs and logical flaws where I would like to make it from scratch rather than debugging it.
Heh. This IS built from scratch. haha.

That other one was just sloppy and didnt look good at all.
Also, I did not make "the other one" it was done and I just tinkered with it. I just had no reservations asking for help to do so.

This ain't that. Its my own idea. And where you keep saying it wont work, but I still make progress.
So, don't help. If this thread just dies again. I will continue on my own. It will just take a while longer.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5391
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Two Questions: FileVIew & FolderInfo

Post by eclectic-tech »

CodeCode wrote: October 21st, 2021, 6:19 pm The structure of the folder and file elements is based on the first index of this limited (not intentionally) FileView arrangement.

The element of the C drive -= which is the first index -= does not write "C:\" to its children like all the other 8 drive folders.

What you see is the part that I do not understand.

I can navigate any of the first indexes down and down through the file list. The drives of This PC folder all work so in that part i am happy, but for all of the sub folders, the folder is not being read past that point (the first index of any folder).

If you look at the click options of the C drive code in the inc file -it is not the same as the other indexes. The main difference is the writekeyvalue for the 8 other root directories write the root name, e.g. the variable is not written for the C drive, but IS for all of the other root directories.

The weird thing is, that if I code the C root file like the other root folders, it breaks everything e.g. the root directories no longer successfully allow navigation past the root drive.

How it is written seems to indicate that if the right combination of codes and variables (whatever those values actually are) will allow the correct navigation of the root and subdirectories as it really should be correct.

So I posted that rmskin, broken as it is, just needs some help to work properly. I am asking here, for ideas on how to correct the broken path commands.

I know it can be done - I somehow had the right combination and all of the indexes were navigable in the correct fashion.

I am calling out all the code-brains, to help fix this (believed to be impossible even at this point).

I hope i made some sense, in how I have described the 'working' and 'not working' parts.

Thanks for any time spent figuring this out.
From what I see in your code, you want to initially display top level drive information with drive labels and size details. Then be able to navigate, using the FileView plugin, to all lower levels of any drive.

This can be done, but the once you navigate off the top level, the drive information coming from FreeDiskSpace measures will have to be disabled to avoid log errors (currentlly your skin fills the log with these errors), and the associated meters hidden.
At "This PC" the path is null, so you can use that value to control when to show/hide FreeDiskSpace details and begin to show FileView details.

Once you double-click any of the drive to "follow the path", you can begin to show folder and file details provided by the FileView plugin.

You really should study the FileView example in the manual; you are trying to manually control built in procedures of the plugin which is causing many of your issues.

A note about the FileView plugin operation:
it will update it's parent measure's path when you use !CommandMeasure {some indexname} "FollowPath", so you DO NOT need to write a variable and update it manually to control the FileView parent measure. Your code tries to set a new path variable, but also command the FileView plugin to follow the path, and then you updated the entire skin (!RefreshGroup Titans) which stops everything. You are fighting the automatic actions of the FileView plugin and resetting your skin.

I made some corrections to your include file to get the FileView portion of your skin working properly. I removed all bangs that changed your mDirPath variable (this is not needed when working with FileView). I also corrected the !CommandMeasure that follow the path to use the current index file name (not the parent FileView measure).

@Resources\Titan.inc

Code: Select all

[Container1]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG1]
Meter=Shape
MeterStyle=BGStyle
Container=Container1

[mIndexIcon1]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=1
IconPath=#@#Icons\icon1.ico
Group=Children

[mIndexName1]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=1
DynamicVariables=1
Group=Children

[mIndexFolderSize1]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FolderSize
Index=1
DynamicVariables=1
Group=Children

[mIndexFileSize1]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileSize
Index=1
DynamicVariables=1
Group=Children

;=========================
[Index1]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName1 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container1

[IndexIcon1]
Meter=Image
MeasureName=mIndexIcon1
X=25
Y=10r
AntiAlias=1
Container=Container1

[IndexDrive1]
Meter=String
MeasureName=mIndexName1
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container1

; [DriveLabel1]
; Meter=String
; MeasureName=mDriveLabel1
; StringAlign=LeftCenter
; X=35r
; Y=r
; Text=%1
; MeterStyle=Contents
; DynamicVariables=1
; Container=Container1

[SizeFolder1]
Meter=String
MeasureName=mIndexFolderSize1
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container1
Hidden=0

[SizeFile1]
Meter=String
MeasureName=mIndexFolderSize1
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container1
Hidden=1

[Container2]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG2]
Meter=Shape
MeterStyle=BGStyle
Container=Container2

[mIndexIcon2]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=2
IconPath=#@#Icons\icon2.ico
Group=Children

[mIndexName2]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=2
DynamicVariables=1
Group=Children

[mDriveLabel2]
Measure=FreeDiskSpace
Drive=[mIndexName2]
Label=1
DynamicVariables=1
Group=Children

[mIndexSize2]
Measure=FreeDiskSpace
Drive=[mIndexName2]
Total=1
DynamicVariables=1
Group=Children

;=========================
[Index2]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName2 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container2

[IndexIcon2]
Meter=Image
MeasureName=mIndexIcon2
X=25
Y=10r
AntiAlias=1
Container=Container2

[IndexDrive2]
Meter=String
MeasureName=mIndexName2
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container2

[DriveLabel2]
Meter=String
MeasureName=mDriveLabel2
StringAlign=LeftCenter
X=35r
Y=r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container2

[Size2]
Meter=String
MeasureName=mIndexSize2
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container2
[Container3]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG3]
Meter=Shape
MeterStyle=BGStyle
Container=Container3

[mIndexIcon3]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=3
IconPath=#@#Icons\icon3.ico
Group=Children

[mIndexName3]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=3
DynamicVariables=1
Group=Children

[mDriveLabel3]
Measure=FreeDiskSpace
Drive=[mIndexName3]
Label=1
DynamicVariables=1
Group=Children

[mIndexSize3]
Measure=FreeDiskSpace
Drive=[mIndexName3]
Total=1
DynamicVariables=1
Group=Children

;=========================Trying this but no payoff yet============================
[mFilePath3]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=PathToFile
Group=Children

;=========================This opens C:\ but also on every other index the same====
[Index3]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName3 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container3

[IndexIcon3]
Meter=Image
MeasureName=mIndexIcon3
X=25
Y=10r
AntiAlias=1
Container=Container3

[IndexDrive3]
Meter=String
MeasureName=mIndexName3
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container3

[DriveLabel3]
Meter=String
MeasureName=mDriveLabel3
StringAlign=LeftCenter
X=35r
Y=r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container3

[Size3]
Meter=String
MeasureName=mIndexSize3
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container3
[Container4]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG4]
Meter=Shape
MeterStyle=BGStyle
Container=Container4

[mIndexIcon4]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=4
IconPath=#@#Icons\icon4.ico
Group=Children

[mIndexName4]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=4
DynamicVariables=1
Group=Children

[mDriveLabel4]
Measure=FreeDiskSpace
Drive=[mIndexName4]
Label=1
DynamicVariables=1
Group=Children

[mIndexSize4]
Measure=FreeDiskSpace
Drive=[mIndexName4]
Total=1
DynamicVariables=1
Group=Children

;=========================Trying this but no payoff yet============================
[mFilePath4]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=PathToFile
Group=Children

;=========================This opens C:\ but also on every other index the same====
[Index4]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName4 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container4

[IndexIcon4]
Meter=Image
MeasureName=mIndexIcon4
X=25
Y=10r
AntiAlias=1
Container=Container4

[IndexDrive4]
Meter=String
MeasureName=mIndexName4
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container4

[DriveLabel4]
Meter=String
MeasureName=mDriveLabel4
StringAlign=LeftCenter
X=35r
Y=r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container4

[Size4]
Meter=String
MeasureName=mIndexSize4
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container4
[Container5]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG5]
Meter=Shape
MeterStyle=BGStyle
Container=Container5

[mIndexIcon5]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=5
IconPath=#@#Icons\icon5.ico
Group=Children

[mIndexName5]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=5
DynamicVariables=1
Group=Children

[mDriveLabel5]
Measure=FreeDiskSpace
Drive=[mIndexName5]
Label=1
DynamicVariables=1
Group=Children

[mIndexSize5]
Measure=FreeDiskSpace
Drive=[mIndexName5]
Total=1
DynamicVariables=1
Group=Children

;=========================Trying this but no payoff yet============================
[mFilePath5]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=PathToFile
Group=Children

;=========================This opens C:\ but also on every other index the same====
[Index5]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName5 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container5

[IndexIcon5]
Meter=Image
MeasureName=mIndexIcon5
X=25
Y=10r
AntiAlias=1
Container=Container5

[IndexDrive5]
Meter=String
MeasureName=mIndexName5
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container5

[DriveLabel5]
Meter=String
MeasureName=mDriveLabel5
StringAlign=LeftCenter
X=35r
Y=r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container5

[Size5]
Meter=String
MeasureName=mIndexSize5
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container5
[Container6]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG6]
Meter=Shape
MeterStyle=BGStyle
Container=Container6

[mIndexIcon6]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=6
IconPath=#@#Icons\icon6.ico
Group=Children

[mIndexName6]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=6
DynamicVariables=1
Group=Children

[mDriveLabel6]
Measure=FreeDiskSpace
Drive=[mIndexName6]
Label=1
DynamicVariables=1
Group=Children

[mIndexSize6]
Measure=FreeDiskSpace
Drive=[mIndexName6]
Total=1
DynamicVariables=1
Group=Children

;=========================Trying this but no payoff yet============================
[mFilePath6]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=PathToFile
Group=Children

;=========================This opens C:\ but also on every other index the same====
[Index6]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName6 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container6

[IndexIcon6]
Meter=Image
MeasureName=mIndexIcon6
X=25
Y=10r
AntiAlias=1
Container=Container6

[IndexDrive6]
Meter=String
MeasureName=mIndexName6
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container6

[DriveLabel6]
Meter=String
MeasureName=mDriveLabel6
StringAlign=LeftCenter
X=35r
Y=r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container6

[Size6]
Meter=String
MeasureName=mIndexSize6
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container6
[Container7]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG7]
Meter=Shape
MeterStyle=BGStyle
Container=Container7

[mIndexIcon7]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=7
IconPath=#@#Icons\icon7.ico
Group=Children

[mIndexName7]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=7
DynamicVariables=1
Group=Children

[mDriveLabel7]
Measure=FreeDiskSpace
Drive=[mIndexName7]
Label=1
DynamicVariables=1
Group=Children

[mIndexSize7]
Measure=FreeDiskSpace
Drive=[mIndexName7]
Total=1
DynamicVariables=1
Group=Children

;=========================Trying this but no payoff yet============================
[mFilePath7]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=PathToFile
Group=Children

;=========================This opens C:\ but also on every other index the same====
[Index7]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName7 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container7

[IndexIcon7]
Meter=Image
MeasureName=mIndexIcon7
X=25
Y=10r
AntiAlias=1
Container=Container7

[IndexDrive7]
Meter=String
MeasureName=mIndexName7
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container7

[DriveLabel7]
Meter=String
MeasureName=mDriveLabel7
StringAlign=LeftCenter
X=35r
Y=r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container7

[Size7]
Meter=String
MeasureName=mIndexSize7
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container7
[Container8]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG8]
Meter=Shape
MeterStyle=BGStyle
Container=Container8

[mIndexIcon8]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=8
IconPath=#@#Icons\icon8.ico
Group=Children

[mIndexName8]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=8
DynamicVariables=1
Group=Children

[mDriveLabel8]
Measure=FreeDiskSpace
Drive=[mIndexName8]
Label=1
DynamicVariables=1
Group=Children

[mIndexSize8]
Measure=FreeDiskSpace
Drive=[mIndexName8]
Total=1
DynamicVariables=1
Group=Children

;=========================Trying this but no payoff yet============================
[mFilePath8]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=PathToFile
Group=Children

;=========================This opens C:\ but also on every other index the same====
[Index8]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName8 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container8

[IndexIcon8]
Meter=Image
MeasureName=mIndexIcon8
X=25
Y=10r
AntiAlias=1
Container=Container8

[IndexDrive8]
Meter=String
MeasureName=mIndexName8
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container8

[DriveLabel8]
Meter=String
MeasureName=mDriveLabel8
StringAlign=LeftCenter
X=35r
Y=r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container8

[Size8]
Meter=String
MeasureName=mIndexSize8
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container8
[Container9]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG9]
Meter=Shape
MeterStyle=BGStyle
Container=Container9

[mIndexIcon9]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=9
IconPath=#@#Icons\icon9.ico
Group=Children

[mIndexName9]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=9
DynamicVariables=1
Group=Children

[mDriveLabel9]
Measure=FreeDiskSpace
Drive=[mIndexName9]
Label=1
DynamicVariables=1
Group=Children

[mIndexSize9]
Measure=FreeDiskSpace
Drive=[mIndexName9]
Total=1
DynamicVariables=1
Group=Children

;=========================Trying this but no payoff yet============================
[mFilePath9]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=PathToFile
Group=Children

;=========================This opens C:\ but also on every other index the same====
[Index9]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName9 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container9

[IndexIcon9]
Meter=Image
MeasureName=mIndexIcon9
X=25
Y=10r
AntiAlias=1
Container=Container9

[IndexDrive9]
Meter=String
MeasureName=mIndexName9
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container9

[DriveLabel9]
Meter=String
MeasureName=mDriveLabel9
StringAlign=LeftCenter
X=35r
Y=r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container9

[Size9]
Meter=String
MeasureName=mIndexSize9
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container9
I also replace your mouse scroll actions in 'Titan.ini' with the FileView commands to change the index up/down to scroll what values are in displayed (the plugin controls the index values based on the 'count' you set in the parent measure).

Code: Select all

[Background]
Meter=Shape
Shape=Rectangle 0,0,420,481 | Fill Color 0,0,0,1 | StrokeWidth 0
DynamicVariables=1
; MouseScrollDownAction=[!SetVariable Scroll "(Clamp(#Scroll#-61, 481-[LastItem:Y], 0))"][!Update][!Redraw]
; MouseScrollUpAction=[!SetVariable Scroll "(Clamp(#Scroll#+61, 481-[LastItem:Y],0))"][!Update][!Redraw]
MouseScrollUpAction=[!CommandMeasure mPath "IndexUp"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
MouseScrollDownAction=[!CommandMeasure mPath "IndexDown"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]

I have not gone much further into your functions to see if you really need containers, back images, etc.
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Two Questions: FileVIew & FolderInfo

Post by death.crafter »

CodeCode wrote: October 21st, 2021, 9:33 pm Heh. This IS built from scratch. haha.

That other one was just sloppy and didnt look good at all.
Also, I did not make "the other one" it was done and I just tinkered with it. I just had no reservations asking for help to do so.

This ain't that. Its my own idea. And where you keep saying it wont work, but I still make progress.
So, don't help. If this thread just dies again. I will continue on my own. It will just take a while longer.
Ahh no, I didn't mean that. What I meant was, start again with what you got till now. The code gets messier with time and tho you got a better understanding of things, the bugs from the past creep up to bug you.

Well, whether you do it or just continue on debugging it is your choice tho. I didn't mean any offence. Sorry for any misunderstanding.
from the Realm of Death
User avatar
CodeCode
Posts: 1365
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Two Questions: FileVIew & FolderInfo

Post by CodeCode »

eclectic-tech wrote: October 21st, 2021, 11:09 pm From what I see in your code, you want to initially display top level drive information with drive labels and size details. Then be able to navigate, using the FileView plugin, to all lower levels of any drive.

This can be done, but the once you navigate off the top level, the drive information coming from FreeDiskSpace measures will have to be disabled to avoid log errors (currentlly your skin fills the log with these errors), and the associated meters hidden.
At "This PC" the path is null, so you can use that value to control when to show/hide FreeDiskSpace details and begin to show FileView details.

Once you double-click any of the drive to "follow the path", you can begin to show folder and file details provided by the FileView plugin.

You really should study the FileView example in the manual; you are trying to manually control built in procedures of the plugin which is causing many of your issues.

A note about the FileView plugin operation:
it will update it's parent measure's path when you use !CommandMeasure {some indexname} "FollowPath", so you DO NOT need to write a variable and update it manually to control the FileView parent measure. Your code tries to set a new path variable, but also command the FileView plugin to follow the path, and then you updated the entire skin (!RefreshGroup Titans) which stops everything. You are fighting the automatic actions of the FileView plugin and resetting your skin.

I made some corrections to your include file to get the FileView portion of your skin working properly. I removed all bangs that changed your mDirPath variable (this is not needed when working with FileView). I also corrected the !CommandMeasure that follow the path to use the current index file name (not the parent FileView measure).

@Resources\Titan.inc

Code: Select all

[Container1]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG1]
Meter=Shape
MeterStyle=BGStyle
Container=Container1

[mIndexIcon1]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=1
IconPath=#@#Icons\icon1.ico
Group=Children

[mIndexName1]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=1
DynamicVariables=1
Group=Children

[mIndexFolderSize1]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FolderSize
Index=1
DynamicVariables=1
Group=Children

[mIndexFileSize1]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileSize
Index=1
DynamicVariables=1
Group=Children

;=========================
[Index1]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName1 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container1

[IndexIcon1]
Meter=Image
MeasureName=mIndexIcon1
X=25
Y=10r
AntiAlias=1
Container=Container1

[IndexDrive1]
Meter=String
MeasureName=mIndexName1
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container1

; [DriveLabel1]
; Meter=String
; MeasureName=mDriveLabel1
; StringAlign=LeftCenter
; X=35r
; Y=r
; Text=%1
; MeterStyle=Contents
; DynamicVariables=1
; Container=Container1

[SizeFolder1]
Meter=String
MeasureName=mIndexFolderSize1
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container1
Hidden=0

[SizeFile1]
Meter=String
MeasureName=mIndexFolderSize1
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container1
Hidden=1

[Container2]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG2]
Meter=Shape
MeterStyle=BGStyle
Container=Container2

[mIndexIcon2]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=2
IconPath=#@#Icons\icon2.ico
Group=Children

[mIndexName2]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=2
DynamicVariables=1
Group=Children

[mDriveLabel2]
Measure=FreeDiskSpace
Drive=[mIndexName2]
Label=1
DynamicVariables=1
Group=Children

[mIndexSize2]
Measure=FreeDiskSpace
Drive=[mIndexName2]
Total=1
DynamicVariables=1
Group=Children

;=========================
[Index2]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName2 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container2

[IndexIcon2]
Meter=Image
MeasureName=mIndexIcon2
X=25
Y=10r
AntiAlias=1
Container=Container2

[IndexDrive2]
Meter=String
MeasureName=mIndexName2
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container2

[DriveLabel2]
Meter=String
MeasureName=mDriveLabel2
StringAlign=LeftCenter
X=35r
Y=r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container2

[Size2]
Meter=String
MeasureName=mIndexSize2
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container2
[Container3]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG3]
Meter=Shape
MeterStyle=BGStyle
Container=Container3

[mIndexIcon3]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=3
IconPath=#@#Icons\icon3.ico
Group=Children

[mIndexName3]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=3
DynamicVariables=1
Group=Children

[mDriveLabel3]
Measure=FreeDiskSpace
Drive=[mIndexName3]
Label=1
DynamicVariables=1
Group=Children

[mIndexSize3]
Measure=FreeDiskSpace
Drive=[mIndexName3]
Total=1
DynamicVariables=1
Group=Children

;=========================Trying this but no payoff yet============================
[mFilePath3]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=PathToFile
Group=Children

;=========================This opens C:\ but also on every other index the same====
[Index3]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName3 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container3

[IndexIcon3]
Meter=Image
MeasureName=mIndexIcon3
X=25
Y=10r
AntiAlias=1
Container=Container3

[IndexDrive3]
Meter=String
MeasureName=mIndexName3
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container3

[DriveLabel3]
Meter=String
MeasureName=mDriveLabel3
StringAlign=LeftCenter
X=35r
Y=r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container3

[Size3]
Meter=String
MeasureName=mIndexSize3
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container3
[Container4]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG4]
Meter=Shape
MeterStyle=BGStyle
Container=Container4

[mIndexIcon4]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=4
IconPath=#@#Icons\icon4.ico
Group=Children

[mIndexName4]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=4
DynamicVariables=1
Group=Children

[mDriveLabel4]
Measure=FreeDiskSpace
Drive=[mIndexName4]
Label=1
DynamicVariables=1
Group=Children

[mIndexSize4]
Measure=FreeDiskSpace
Drive=[mIndexName4]
Total=1
DynamicVariables=1
Group=Children

;=========================Trying this but no payoff yet============================
[mFilePath4]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=PathToFile
Group=Children

;=========================This opens C:\ but also on every other index the same====
[Index4]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName4 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container4

[IndexIcon4]
Meter=Image
MeasureName=mIndexIcon4
X=25
Y=10r
AntiAlias=1
Container=Container4

[IndexDrive4]
Meter=String
MeasureName=mIndexName4
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container4

[DriveLabel4]
Meter=String
MeasureName=mDriveLabel4
StringAlign=LeftCenter
X=35r
Y=r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container4

[Size4]
Meter=String
MeasureName=mIndexSize4
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container4
[Container5]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG5]
Meter=Shape
MeterStyle=BGStyle
Container=Container5

[mIndexIcon5]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=5
IconPath=#@#Icons\icon5.ico
Group=Children

[mIndexName5]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=5
DynamicVariables=1
Group=Children

[mDriveLabel5]
Measure=FreeDiskSpace
Drive=[mIndexName5]
Label=1
DynamicVariables=1
Group=Children

[mIndexSize5]
Measure=FreeDiskSpace
Drive=[mIndexName5]
Total=1
DynamicVariables=1
Group=Children

;=========================Trying this but no payoff yet============================
[mFilePath5]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=PathToFile
Group=Children

;=========================This opens C:\ but also on every other index the same====
[Index5]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName5 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container5

[IndexIcon5]
Meter=Image
MeasureName=mIndexIcon5
X=25
Y=10r
AntiAlias=1
Container=Container5

[IndexDrive5]
Meter=String
MeasureName=mIndexName5
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container5

[DriveLabel5]
Meter=String
MeasureName=mDriveLabel5
StringAlign=LeftCenter
X=35r
Y=r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container5

[Size5]
Meter=String
MeasureName=mIndexSize5
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container5
[Container6]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG6]
Meter=Shape
MeterStyle=BGStyle
Container=Container6

[mIndexIcon6]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=6
IconPath=#@#Icons\icon6.ico
Group=Children

[mIndexName6]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=6
DynamicVariables=1
Group=Children

[mDriveLabel6]
Measure=FreeDiskSpace
Drive=[mIndexName6]
Label=1
DynamicVariables=1
Group=Children

[mIndexSize6]
Measure=FreeDiskSpace
Drive=[mIndexName6]
Total=1
DynamicVariables=1
Group=Children

;=========================Trying this but no payoff yet============================
[mFilePath6]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=PathToFile
Group=Children

;=========================This opens C:\ but also on every other index the same====
[Index6]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName6 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container6

[IndexIcon6]
Meter=Image
MeasureName=mIndexIcon6
X=25
Y=10r
AntiAlias=1
Container=Container6

[IndexDrive6]
Meter=String
MeasureName=mIndexName6
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container6

[DriveLabel6]
Meter=String
MeasureName=mDriveLabel6
StringAlign=LeftCenter
X=35r
Y=r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container6

[Size6]
Meter=String
MeasureName=mIndexSize6
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container6
[Container7]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG7]
Meter=Shape
MeterStyle=BGStyle
Container=Container7

[mIndexIcon7]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=7
IconPath=#@#Icons\icon7.ico
Group=Children

[mIndexName7]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=7
DynamicVariables=1
Group=Children

[mDriveLabel7]
Measure=FreeDiskSpace
Drive=[mIndexName7]
Label=1
DynamicVariables=1
Group=Children

[mIndexSize7]
Measure=FreeDiskSpace
Drive=[mIndexName7]
Total=1
DynamicVariables=1
Group=Children

;=========================Trying this but no payoff yet============================
[mFilePath7]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=PathToFile
Group=Children

;=========================This opens C:\ but also on every other index the same====
[Index7]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName7 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container7

[IndexIcon7]
Meter=Image
MeasureName=mIndexIcon7
X=25
Y=10r
AntiAlias=1
Container=Container7

[IndexDrive7]
Meter=String
MeasureName=mIndexName7
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container7

[DriveLabel7]
Meter=String
MeasureName=mDriveLabel7
StringAlign=LeftCenter
X=35r
Y=r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container7

[Size7]
Meter=String
MeasureName=mIndexSize7
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container7
[Container8]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG8]
Meter=Shape
MeterStyle=BGStyle
Container=Container8

[mIndexIcon8]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=8
IconPath=#@#Icons\icon8.ico
Group=Children

[mIndexName8]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=8
DynamicVariables=1
Group=Children

[mDriveLabel8]
Measure=FreeDiskSpace
Drive=[mIndexName8]
Label=1
DynamicVariables=1
Group=Children

[mIndexSize8]
Measure=FreeDiskSpace
Drive=[mIndexName8]
Total=1
DynamicVariables=1
Group=Children

;=========================Trying this but no payoff yet============================
[mFilePath8]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=PathToFile
Group=Children

;=========================This opens C:\ but also on every other index the same====
[Index8]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName8 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container8

[IndexIcon8]
Meter=Image
MeasureName=mIndexIcon8
X=25
Y=10r
AntiAlias=1
Container=Container8

[IndexDrive8]
Meter=String
MeasureName=mIndexName8
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container8

[DriveLabel8]
Meter=String
MeasureName=mDriveLabel8
StringAlign=LeftCenter
X=35r
Y=r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container8

[Size8]
Meter=String
MeasureName=mIndexSize8
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container8
[Container9]
Meter=Shape
MeterStyle=BGStyle
Y=8R

[DrivesBG9]
Meter=Shape
MeterStyle=BGStyle
Container=Container9

[mIndexIcon9]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=Icon
IconSize=Medium
Index=9
IconPath=#@#Icons\icon9.ico
Group=Children

[mIndexName9]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=9
DynamicVariables=1
Group=Children

[mDriveLabel9]
Measure=FreeDiskSpace
Drive=[mIndexName9]
Label=1
DynamicVariables=1
Group=Children

[mIndexSize9]
Measure=FreeDiskSpace
Drive=[mIndexName9]
Total=1
DynamicVariables=1
Group=Children

;=========================Trying this but no payoff yet============================
[mFilePath9]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=PathToFile
Group=Children

;=========================This opens C:\ but also on every other index the same====
[Index9]
Meter=Image
X=r
Y=r
W=420
H=53
SolidColor=0,0,0,1
DynamicVariables=1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "0,128,190,50"][!SetOption #CURRENTSECTION# SolidColor2 "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor "17,17,17,250"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseDoubleClickAction=[!CommandMeasure mIndexName9 "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
Container=Container9

[IndexIcon9]
Meter=Image
MeasureName=mIndexIcon9
X=25
Y=10r
AntiAlias=1
Container=Container9

[IndexDrive9]
Meter=String
MeasureName=mIndexName9
StringAlign=LeftCenter
X=50r
Y=15r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container9

[DriveLabel9]
Meter=String
MeasureName=mDriveLabel9
StringAlign=LeftCenter
X=35r
Y=r
Text=%1
MeterStyle=Contents
DynamicVariables=1
Container=Container9

[Size9]
Meter=String
MeasureName=mIndexSize9
X=405
Y=r
Text=%1B
AutoScale=1
StringAlign=RightCenter
DynamicVariables=1
MeterStyle=Contents
Container=Container9
I also replace your mouse scroll actions in 'Titan.ini' with the FileView commands to change the index up/down to scroll what values are in displayed (the plugin controls the index values based on the 'count' you set in the parent measure).

Code: Select all

[Background]
Meter=Shape
Shape=Rectangle 0,0,420,481 | Fill Color 0,0,0,1 | StrokeWidth 0
DynamicVariables=1
; MouseScrollDownAction=[!SetVariable Scroll "(Clamp(#Scroll#-61, 481-[LastItem:Y], 0))"][!Update][!Redraw]
; MouseScrollUpAction=[!SetVariable Scroll "(Clamp(#Scroll#+61, 481-[LastItem:Y],0))"][!Update][!Redraw]
MouseScrollUpAction=[!CommandMeasure mPath "IndexUp"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
MouseScrollDownAction=[!CommandMeasure mPath "IndexDown"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]

I have not gone much further into your functions to see if you really need containers, back images, etc.
Holy Toledo. I just got into these changes, and man... so much better. 50% of my hurdles, resolved in your one post EC.

There are some things that seem to kind of break what I have, but that I think is just sorting out the details.

Ok, I'll say it: I knew your ability to think outside the box would be very helpful. EC!

Thanks a ton!

I'll pipe back in when I've sorted my couple of bugs here.

:bounce: :yahoo:
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5391
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Two Questions: FileVIew & FolderInfo

Post by eclectic-tech »

Always happy to help. :)

FileView is a good tool to explore and launch items, so I simply corrected how you were using it. It is not easy to make it dynamic in size, the 'count' can be changed but then meters need to be shown/hidden or resized.

You know what you want to end up with, but it can be difficult for others to follow when lots of things are changing.

Taking things one step at a time can prevent undesirable side effect. With complicated skins, I usually keep backups before making changes so I can go back if things start crashing.

Have fun! :great:
User avatar
CodeCode
Posts: 1365
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Two Questions: FileVIew & FolderInfo

Post by CodeCode »

(sorry ET for murdering your Forum ID abbreviation)

Yes. It was all seeming to just get more knotted up in trying to make a breakthru, to making very little progress - then rushing ahead when a brute force method dawned on me.

But I think, that with all of the jumping around was part of the reason you knew exactly where to add finesse instead.

It all seems relative now after your help - but i was forcing things more than working the idea inside tested methods.

Cheers. But not goodbye - I will certainly run aground again lol. Then I will be looking for additional help, again.

Funny thing though. I was mired up on folder paths, then realised after seeing your working code, that the first index of C drive was actually an empty bloody folder! :oops:

So now there is a test for zero files or folders to say <Empty> for that index.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
CodeCode
Posts: 1365
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Two Questions: FileVIew & FolderInfo

Post by CodeCode »

Ok. I warned the forums I would return, and I don't plan on disappointing.

As not predictable as I am, I changed things around to better fit my goal.

In that view, I have sort of a puzzle to solve.

The good news first. This FileView project seems to be approaching solved.

I am trying to get the best of the proverbial 'both worlds'. In so doing, I realised that those changes caused another issue. To explain, I have the front page using the Scroll by a factor of a measurement of the visual list of containers. The other is the scroll Index+/- for subfolders. This was after I found that to index through longer lists of folders and files greater than the 7 visible parts the Index version was entirely necessary.

So, here is my question/s:
The non indexed scrolling works great with my conditional test in place. The caveat is if the top level of the ThisPC drives list gets cut off and/or gets ignored when navigating from the higher than the initial 7 visible containers to a subfolder. The result is that from that position in all of the indexes, the top 1 or 2 or more are not in the count, and the subfolder is then missing those first indexes. This also cuts off the 'menu bar' so going back with out refreshing is impossible.

The free scrolling uses a #Scroll# variable, and the index version uses, indexes. Is it possible to either set #scroll# back to zero to jump the list up, just before moving to the subfolder. Or is it actually possible to adjust the index after navigating, if only one of these can work, which one?

Here is the latest Titan rmskin:
Titan Drives_4.0.1.rmskin
Thanks for having a look. Any help around this puzzle is appreciated.
You do not have the required permissions to view the files attached to this post.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: Two Questions: FileVIew & FolderInfo

Post by death.crafter »

I think I owe you an apology, CodeCode. Sorry for my previous post where I told you to start from scratch again, without looking properly at your skin.

So to make up, here is a little something that you wanted a while back (maybe, I don't remember correctly :oops: ).

With this skin there is a plugin that you can use to get the label, free or total space, file system(NTFS, FAT32 etc) and drive type(fixed, removable etc).
Screenshot 2021-10-23 190001.png
TitanDrives_1.0.0.rmskin
You do not have the required permissions to view the files attached to this post.
from the Realm of Death