Example:balala wrote:I'm not sure I understood what would you like to store as a variable, when the file is accessed.
#1 - Dragon Age
#2 - Diablo
#3 - Warcraft
#4 - Guild Wars
Every single one of those meters (because they need to be meters in the INI) would have an IndexNo= value
Dragon Age IndexNo=1
Diablo IndexNo=2
Warcraft IndexNo=3
Guild Wars IndexNo=4
If we change that to IndexNo=1+#GlobalIndex#+#Index1plus# we can do some stuff like
Let's say Warcraft is accessed.
The LeftMouseUpAction, in addition to launching Warcraft, would add +10 to the GlobalIndex and -10 to #Index3plus#
That way Warcraft's IndexNo would be 3+10-10, so 3
Dragon Age's IndexNo would be 1+10+0, so 11
Diablo's IndexNo would be 2+10+0, so 12
Guild Wars' IndexNo would be 4+10+0, so 14
The new order of files would be
#1 - Warcraft
#2 - Dragon Age
#3 - Diablo
#4 - Guild Wars
See? I believe this is so easy of a solution that it might be even possible to implement it within FileView itself without any problem. If only I knew how to do that...
But that doesn't work at the moment, am I correct? I mean, we can't have IndexNos for each FileView file meter...
EDIT: please keep in mind that IndexNo wouldn't be the same as the Index option. IndexNo would refer to the order in which the file is displayed, while Index refers to what file the meter is targeting on the folder.
Not to mention there would also be a problem on adapting that logic model so it would work with adding new files to the FileView folder.