Posted by member 12025 on 2004-04-10 03:25:16
I want to have a single set of !bangs to control this, as it would make life simpler if I could do it.
*script exec !setSize_%{cur_side}
*script ~bang
*script bang !setSize_left
*script exec !LsBoxMoveBox %{cur}Grip 0 0
*script exec !varSet cur_x %{cur}Grip_size
(...)
*script ~bang
!varSet cur_side "left"
!setSize
Now, it obviously works up the last line of the setSize_left !bang. Cur_x is set to "ampGrip_size". I kinda figured that would happen.
What I want is for it to be set to the variable of that name. %{%{cur}Grip_size} doesn't work, either.
Is there any way to do this (including saving and reloading variables, so the evars and mzscript vars match up, since I can do what I want with evars), or will I just have to have a monstrous script file with a few lines changed each !bang for what are basically the same !bangs?
With luck there's a very simple way of doing this I'm overlooking.