Page 1 of 1

script request: swap panes or toggle active.

Posted: 24 Oct 2021 17:56
by kunkel321
Hello Highend and All,

An idea/request for a script...

I currently have a CEA setup as follows:
Custom Event Actions: Right click on number line... #808

This only works in dual-pane mode though. When I'm in single-pane mode, the CEA does nothing (as you would expect). I'd like it, instead, to toggle active pane. Something like:

Code: Select all

Custom Event Actions:  Right click on number line... 
IF Sate is Dual Pane
  THEN #808 ; Swap panes
ELSE IF State is Single Pane
  THEN #802 ; Toggle active pane
Thoughts?

Re: script request: swap panes or toggle active.

Posted: 24 Oct 2021 18:04
by highend

Code: Select all

    if (get("#800")) { #808; }
    else             { #802; }

Re: script request: swap panes or toggle active.

Posted: 24 Oct 2021 21:22
by kunkel321
Yep -- works perfectly! Thanks Highend!