It is relatively easy to still have separate actions for the tree and list and accomplish it in a single script. You need to establish a variable for the mouse click location (e.g.,
$loc = ControlatPos(); and run your different commands based on the location. You can also perform different actions depending on the modifier key held down when you double click or middle click. For middle click you can also base your actions on the selected file type (ext) as well. You can do that for the right click CEA scripts too. Double clicking on White Space you can not because you lose the selection. Just a quick cut up example...Code: Select all
$mod = get("shift");
$loc = ControlatPos();
if($loc == "T") { //if mouse clicked in the tree WS
if ($mod == 0) {load "<xyscripts>\your own script.xys"; end 1; }
elseif ($mod == 1) {#574; end(1); }
elseif ($mod == 2) {#550; end(1); }
else {#564; end 1;}
}
elseif (gettokenindex($loc, "L 1|L 2", "|", "i")) { //if mouse click in list pane 1 or 2
load " your script.xys";
}
XYplorer Beta Club