All Tabs Go Home

Discuss and share scripts and script files...
Post Reply
serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

All Tabs Go Home

Post 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!";

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: All Tabs Go Home

Post 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?
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: All Tabs Go Home

Post 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).

Post Reply