I am tinkering with my FileView skin.
I am writing to a variable, like this:
Code: Select all
Meter=String
RightMouseUpAction=[!SetClip [mPath]][!SetVariable FaveSet [mPath]][!WriteKeyValue Variables FaveSet [mPath] "#@#TitanVars.inc"][!Update *]
But I am trying to get that variable and write it to another variable for future use, so WriteKeyValue and SetVariable are necessary.
I am having trouble with managing the Write to that variable.
I am trying a Measure to handle the variable and two more, as part of a set of buttons that appear when the above line is written., but I am not getting results.
The idea is to get the FaveSet and write it to the first store variable that has an empty string for its value.
I have a set of lines I think should be part of the goal: I know that the IfCondition wont work, I just put it there so the idea could be exemplified below...
Code: Select all
[mFavourite]
Measure=Calc
IfCondition=(#FaveOne# = "")
IfTrueAction=[!SetVariable FaveOne """#FaveSet#"""][!WriteKeyValue Variables FaveOne """#FaveSet#""" "#@#TitanVars.inc"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *]
IfFalseAction=[!CommandMeasure mFavourite "Update"]
IfCondition2=(#FaveTwo# = "")
IfTrueAction2=[!SetVariable FaveTwo """#FaveSet#"""][!WriteKeyValue Variables FaveTwo """#FaveSet#""" "#@#TitanVars.inc"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *]
IfFalseAction2=[!CommandMeasure mFavourite "Update"]
IfCondition3=(#FaveThree# = "")
IfTrueAction3=[!SetVariable FaveThree """#FaveSet#"""][!WriteKeyValue Variables FaveThree """#FaveSet#""" "#@#TitanVars.inc"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!UpdateMeter *]
IfFalseAction3=[!CommandMeasure mFavourite "Update"]
OnChangeAction=[!Update *]
Recap:
If #FaveOne# is empty string write the value of #FaveSet# to #FaveOne# . If not empty try to set to #FaveTwo#. If not empty again try to set to #FaveThree#. If not empty string at this point; do nothing (for now anyway).
Thanks for any help.