Page 1 of 1

Tabset - Script Request

Posted: 06 May 2013 17:01
by nerdweed
A small script request. I don't know if I am the only one or does someone else feel this way that, both left and right click should populate the recent tabsets. Left click should open the tabset in pane 1 / active pane while right click should open the tabset in pane 2 / inactive pane.

Why - I often would move files from one location to another and am having tabsets created for them. With the current implementation of tabsets, I would have to click on the inactive pane, switch tabset, then switch back to the active pane and then do the file movement. And I often miss clicking on the other pane and instead open the tabset in the active pane.

Re: Tabset - Script Request

Posted: 06 May 2013 19:05
by nerdweed
Have written this script. Works fine. Improvements welcome.

Code: Select all

//The Tweak: no Click, Edit, Customize Toolbar should be set to 1
//CTBNoRClickDefaultCommands=1

"Tabsets"
	//1 for left click=left pane & right click=right pane. 0 for left click=active pane & right click=inactive pane
	$functionality=1 ; 
	$click=<get trigger> ;
	$pane=<get pane> ;
	if ($click==1 && $functionality==0 || ($pane==1 && $click==1 && $functionality==1) || ($pane==2 && $click==2 && $functionality==1)) {  
		button "tabsets" ;
	}
	else {
		Focus "PI" ;
		button "tabsets" ;
		Focus "PI" ;
	}