Page 1 of 1

All Tabs Go Home

Posted: 07 Feb 2012 17:53
by serendipity
This script sends all tabs home, options to choose either pane or both panes.

Code: Select all

//All Tabs Go Home
"Left/Top pane"
   focus P1;
   sub "_gohome";

"Right/Bottom pane"
   focus P2;
   sub "_gohome";

"Both panes"
   sub "_gohome";
   focus PI;
   sub "_gohome";
   focus PI;

"_gohome"
  $curtab=tab();
  $tabcount= tab("get","c");
  $count=1;
  WHILE($tabcount>=$count){               
     seltab $count;
     #348;
     $count++;
     }                                       
  seltab $curtab;
  status "All tabs Homed!";

Re: All Tabs Go Home

Posted: 12 Oct 2013 15:14
by binocular222
To remove visual glitch (activated tabs flashing), I tried replacing "seltab $count" with "#1038;" so that it become:

Code: Select all

"_gohome"
  $curtab=tab();
  $tabcount= tab("get","c");
  $count=1;
  WHILE($tabcount>=$count){
     #1038;
     #348;
     $count++;
     }
  seltab $curtab;
  status "All tabs Homed!";
However, the glitch is still there ?! Anyway better?

Re: All Tabs Go Home

Posted: 12 Oct 2013 17:06
by serendipity
binocular222 wrote:To remove visual glitch (activated tabs flashing), I tried replacing "seltab $count" with "#1038;" so that it become:

Code: Select all

"_gohome"
  $curtab=tab();
  $tabcount= tab("get","c");
  $count=1;
  WHILE($tabcount>=$count){
     #1038;
     #348;
     $count++;
     }
  seltab $curtab;
  status "All tabs Homed!";
However, the glitch is still there ?! Anyway better?
#1038 wont help because the tab will be selected anyway. I think there is no way to send a tab home without activating it (hence the visual glitch).