It is currently November 30th, 2021, 3:59 am

Plugin DriveInfo

Share and get help with Plugins and Addons
User avatar
CodeCode
Posts: 797
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Plugin DriveInfo

Post by CodeCode »

CodeCode wrote: November 20th, 2021, 4:22 am Hello.
After realizing what I actually did, by modifying your driveinfo skin, I went back to the Titan Drives base and added the necessary sections etc that I needed.

I am now trying to implement and integrate the lua script's advantages to enhance Titan's functionality.
This bit of code is meant to retrieve all the specs of each drive:

Code: Select all

[DriveSpace1]
Meter=String
X=r
Y=15r
FontSize=8
StringAlign=LeftCenter
Text=[&pName:GetSpaceLabel(1)]
MeterStyle=Contents
Hidden=(1-[&pName:IsDrive(1)])
DynamicVariables=1
Container=Container1
The output is literally what is in the Text option. So I surmise that there is a dependency for that to get the info rather then the literal string.

I dont really know where to look.
These are in the ini as well:

Code: Select all

[Label]
Measure=Plugin
Plugin=DriveInfo
Drive=G
Type=FileSystem

[pName]
Measure=Script
ScriptFile=#@#Scripts\TitanDrives.lua
So I am missing something for this purpose.
Any help is appreciated.
Ok. Sorry. Never mind. I actually think I read the lua to identify the dependency. I READ it! So cool. My brain just got smarterer.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
death.crafter
Rainmeter Sage
Posts: 1203
Joined: April 24th, 2021, 8:13 pm

Re: Plugin DriveInfo

Post by death.crafter »

CodeCode wrote: November 20th, 2021, 4:22 am Hello.
After realizing what I actually did, by modifying your driveinfo skin, I went back to the Titan Drives base and added the necessary sections etc that I needed.

I am now trying to implement and integrate the lua script's advantages to enhance Titan's functionality.
This bit of code is meant to retrieve all the specs of each drive:

Code: Select all

[DriveSpace1]
Meter=String
X=r
Y=15r
FontSize=8
StringAlign=LeftCenter
Text=[&pName:GetSpaceLabel(1)]
MeterStyle=Contents
Hidden=(1-[&pName:IsDrive(1)])
DynamicVariables=1
Container=Container1
The output is literally what is in the Text option. So I surmise that there is a dependency for that to get the info rather then the literal string.

I dont really know where to look.
These are in the ini as well:

Code: Select all

[Label]
Measure=Plugin
Plugin=DriveInfo
Drive=G
Type=FileSystem

[pName]
Measure=Script
ScriptFile=#@#Scripts\TitanDrives.lua
So I am missing something for this purpose.
Any help is appreciated.
You can post the skin here. Can't really say anything without looking at it.
from the Realm of Death
User avatar
CodeCode
Posts: 797
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Plugin DriveInfo

Post by CodeCode »

death.crafter wrote: November 20th, 2021, 5:14 am You can post the skin here. Can't really say anything without looking at it.
This was the dependency. Added to every index:

Code: Select all

[mName1]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=1
DynamicVariables=1
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
death.crafter
Rainmeter Sage
Posts: 1203
Joined: April 24th, 2021, 8:13 pm

Re: Plugin DriveInfo

Post by death.crafter »

CodeCode wrote: November 20th, 2021, 6:04 am This was the dependency. Added to every index:

Code: Select all

[mName1]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Type=FileName
Index=1
DynamicVariables=1
Ohh, yes it is. I process the measure's string value to get drive labels.
from the Realm of Death
User avatar
CodeCode
Posts: 797
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Plugin DriveInfo

Post by CodeCode »

Hello d.c

I have a request, if you have the time?

Could this be implemented into the plugin? ::

Code: Select all

[MeasureGetDriveBus]
Measure=Plugin
Plugin=PowershellRM
Line=Get-Partition | Out-Null
Line2=(Get-PhysicalDisk | Where-Object DeviceId -eq (Get-Partition -DriveLetter #DriveLetter#).DiskNumber).BusType
Of course the code would be different, but having both ps1 and lua seems a bit tacky.

Thanks for this cool plugin :great:
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
death.crafter
Rainmeter Sage
Posts: 1203
Joined: April 24th, 2021, 8:13 pm

Re: Plugin DriveInfo

Post by death.crafter »

CodeCode wrote: November 24th, 2021, 11:20 am Hello d.c

I have a request, if you have the time?

Could this be implemented into the plugin? ::

Code: Select all

[MeasureGetDriveBus]
Measure=Plugin
Plugin=PowershellRM
Line=Get-Partition | Out-Null
Line2=(Get-PhysicalDisk | Where-Object DeviceId -eq (Get-Partition -DriveLetter #DriveLetter#).DiskNumber).BusType
Of course the code would be different, but having both ps1 and lua seems a bit tacky.

Thanks for this cool plugin :great:
I'll try. But I don't promise anything as I am a newbie.
from the Realm of Death