Posted by member 910 on 2003-07-10 22:17:44 link
excessive testing. if you know how many show / hide pairs you have, just cycle it that many times for prev. for 3 modules:
[!systrayShow][!VWMHide]:!Execute [!labelShow][!systrayHide]:!Execute [!vwmshow][!labelHide]
[!systrayShow][!VWMHide]:!Execute [!labelShow][!systrayHide]:!Execute [!vwmshow][!labelHide]
*script var mod_num 3
*script var Queue "!Execute [!systrayShow][!VWMHide]:!Execute [!labelShow][!systrayHide]:!Execute [!vwmshow][!labelHide]"
*script var Queue_rev "!Execute [!labelShow][!vwmHide]:!Execute [!systrayShow][!labelHide]:!Execute [VWMShow][!SystrayHide]"
*script bang !QueueAdvance
*script exec %{Queue:}
*script varset Queue %{Queue:_}:%{Queue:}
*script !varset loop_num 1
*script varset Queue_rev %{Queue_rev:_}:%{Queue_rev:}
*script !varAdd loop_num 1
*script gotoif ( %{loop_num} != %{mod_num} ) EndLoop
*script ~bang
*script bang !QueuePrev
*script exec %{Queue_rev:}
*script varset Queue_rev %{Queue_rev:_}:%{Queue_rev:}
*script !varset loop_num 1
*script varset Queue %{Queue:_}:%{Queue:}
*script !varAdd loop_num 1
*script gotoif ( %{loop_num} != %{mod_num} ) EndLoop
*script ~bang
*script var Queue "!Execute [!systrayShow][!VWMHide]:!Execute [!labelShow][!systrayHide]:!Execute [!vwmshow][!labelHide]"
*script var Queue_rev "!Execute [!labelShow][!vwmHide]:!Execute [!systrayShow][!labelHide]:!Execute [VWMShow][!SystrayHide]"
*script bang !QueueAdvance
*script exec %{Queue:}
*script varset Queue %{Queue:_}:%{Queue:}
*script !varset loop_num 1
*script varset Queue_rev %{Queue_rev:_}:%{Queue_rev:}
*script !varAdd loop_num 1
*script gotoif ( %{loop_num} != %{mod_num} ) EndLoop
*script ~bang
*script bang !QueuePrev
*script exec %{Queue_rev:}
*script varset Queue_rev %{Queue_rev:_}:%{Queue_rev:}
*script !varset loop_num 1
*script varset Queue %{Queue:_}:%{Queue:}
*script !varAdd loop_num 1
*script gotoif ( %{loop_num} != %{mod_num} ) EndLoop
*script ~bang