Basically, I want to know how to replace disconnected drive stats and show just the Drive letter and "No Device".
So from this:
E:/ 100%............0 B ~ 0B
F:/ 100%............0 B ~ 0B
G:/ 100%............0 B ~ 0B
etc...
To this:
E:/.................No Device
F:/.................No Device
G:/.................No Device
etc...
My current Drive code for E:
I've managed to use the code below to change all the info to how I described above, but then I had a crazy thought...
Basically, if I listed ALL those drives the skin would look something like this when no devices are connected:
C:/ 46 %................53.4 GB
D:/ 48 %...............185.8 GB
E:/....................No Device
F:/....................No Device
G:/....................No Device
H:/....................No Device
I:/.....................No Device
J:/....................No Device
K:/....................No Device
Clock....................Date
As C: and D: are fixed, they should always be shown. Removable drives however, should only be displayed when connected. But this leaves a problem. Do I have to leave a load of junk info or a huge blank space on the skin for when the drive are disconnected, for example like this:
C:/ 46 %................53.4 GB
D:/ 48 %...............185.8 GB
E:/....................No Device
F:/....................No Device
G:/ 24.6%...............25.2 GB
H:/....................No Device
I:/.....................No Device
J:/....................No Device
K:/ 67.8 %..............258.4 GB
Clock....................Date
Or maybe this:
C:/ 46 %................53.4 GB
D:/ 48 %...............185.8 GB
G:/ 24.6%...............25.2 GB
K:/ 67.8 %..............258.4 GB
Clock....................Date
This means I either show a bunch of useless info or random blank lines where devices are disconnected.
I thought it would be much better to have something like this:
C:/ 46 %................53.4 GB
D:/ 48 %...............185.8 GB
G:/ 24.6%...............25.2 GB
K:/ 67.8 %..............258.4 GB
Clock....................Date
This means the space available dynamically adjusts depending how many drives are connected. So if none were connected there's no huge blank space just a single line as there always is anyway above the Clock and Date meters.
The same way that this code adjusts the size of the background to suit the changes in meters shown...
Background=#@#Bg-illustro.png
BackgroundMode=3
BackgroundMargins=0,34,0,30
Is that possible?
Also,
While trying out various code for IfAbove/IfBelow, I found that using [!SetOption E:Value Text ""] left a 0 as the parameter when a drive was disconnected. I then used this code to remove that final zero to leave a totally blank line:
[mE:Free]
Measure=FreeDiskSpace
Drive=E:
IgnoreRemovable=0
UpdateDivider=2
Substitute=".0":"","0":""
What puzzled me though, is that using the zero in the substitute removes all zeros, yes? Ok, so I changed the [!SetOption E:Value Text ""] to [!SetOption E:Value Text "N/A"]. But, and this is the puzzling bit, when I used that Substitute line above, I changed that to:
[mE:Free]
Measure=FreeDiskSpace
Drive=E:
IgnoreRemovable=0
UpdateDivider=2
Substitute=".0":"","N/A":""
But it didn't work??? Even though the !SetOption command changes the Text to N/A so as not to affect the rest of the Meter, why doesn't Substitute then change the N/A to ""? Am I doing something wrong or is this a bug?
If you wish I can post the entire skin to see it all in context, though it's one large skin as a sidebar with over 1000 lines!
Thanks for any help you can offer