script request: swap panes or toggle active.

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

script request: swap panes or toggle active.

Post 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?
ste(phen|ve) kunkel

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: script request: swap panes or toggle active.

Post by highend »

Code: Select all

    if (get("#800")) { #808; }
    else             { #802; }
One of my scripts helped you out? Please donate via Paypal

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: script request: swap panes or toggle active.

Post by kunkel321 »

Yep -- works perfectly! Thanks Highend!
ste(phen|ve) kunkel

Post Reply