Posted by member 99 on 2004-02-27 11:16:57 link

Swap the numbers on your groups 1 and 5 to make the math easier. Then you are doing:
1 = +5+2+3+4-1-6-7-8
2 = +1+6+3+4-5-2-7-8
3 = +1+2+7+4-5-6-3-8
4 = +1+2+3+8-5-6-7-4
Every time you switch, you need to hide (n+4) and show n for the desk you are leaving, then show (n+4) and hide n for the desk you are switching to.

; hide group (n+4) and show n when switching away
VWMOnSwitchFrom !execute [!ShortcutGroupShow ^@dc^][!ShortcutGroupHide ^@#d^^@dc^+4^@#d^]
; hide group n and show (n+4) when switching to
VWMOnSwitchTo !execute [!ShortcutGroupShow ^@#d^^@dc^+4^@#d^][!ShortcutGroupHide ^@dc^]