Posted by member 182 on 2004-07-18 20:20:27
Hey y'all :)
You know i've been at this for a while. Life getting too busy / me getting too lazy has put iLG on hold for far too long, so i figured what better place to come to than the Litestep.net community for help on the final part of this theme!
Okay, most of you already know there's a label setup atm which shows one drive's free space, which when left clicked toggles to another label, and back again.
What i want to do is have a $var$ in themevars.rc which will be something like
mzScript will read that in, and every time the label is clicked it'll cycle through all the drives, in that order.
atm the code is very half assed, ie:
You can kinda see what i'm getting at ..
The principle is that on startup the script will read $drives$ into %{drivearray}, insert 'end' as the last item in the array, and set the current displayed label to %{currentHDD}.
Whenever the label(s) are clicked, the script will read in the current drive, set the alternate label to the next drive in the array, and hide the current label. If the next drive in the array is equal to 'end' though, it's to show the first drive in the list.
So in short, you can keep clicking the label(s) and it cycles right through all the drives on your system!
Anyone wanna help me out so i can finally release this theme? :D
You know i've been at this for a while. Life getting too busy / me getting too lazy has put iLG on hold for far too long, so i figured what better place to come to than the Litestep.net community for help on the final part of this theme!
Okay, most of you already know there's a label setup atm which shows one drive's free space, which when left clicked toggles to another label, and back again.
What i want to do is have a $var$ in themevars.rc which will be something like
drives c d e f z
mzScript will read that in, and every time the label is clicked it'll cycle through all the drives, in that order.
atm the code is very half assed, ie:
*script bang !switchHDD
*script !varset drive_array %{drives}:end
*Script label loop
*script gotoif ("%{drivearray:%{\%{drvcount%}}" = "end") _counted
*script exec !varadd drvcount 1
*script goto loop
*Script label _counted
*script !ifeq drive2 %{drivearray:%{\%{drvcount%}} '|varset drive1 %{drive2}'
*script gotoif ("%{nextHDD}" = "end") _first
*Script label stopstop
*Script ~bang
*script !varset drive_array %{drives}:end
*Script label loop
*script gotoif ("%{drivearray:%{\%{drvcount%}}" = "end") _counted
*script exec !varadd drvcount 1
*script goto loop
*Script label _counted
*script !ifeq drive2 %{drivearray:%{\%{drvcount%}} '|varset drive1 %{drive2}'
*script gotoif ("%{nextHDD}" = "end") _first
*Script label stopstop
*Script ~bang
You can kinda see what i'm getting at ..
The principle is that on startup the script will read $drives$ into %{drivearray}, insert 'end' as the last item in the array, and set the current displayed label to %{currentHDD}.
Whenever the label(s) are clicked, the script will read in the current drive, set the alternate label to the next drive in the array, and hide the current label. If the next drive in the array is equal to 'end' though, it's to show the first drive in the list.
So in short, you can keep clicking the label(s) and it cycles right through all the drives on your system!
Anyone wanna help me out so i can finally release this theme? :D