Hello! Greetings!
I am trying to write a script for a customed mouse event, but I don't know how I can restrict the script based on which current pane I am working on.
My idea is one script that activates when I middle click a folder:
If the folder is in pane 1 ⇒ middle click open this folder in pane 2 current tab (not a new tab);
If the folder is in pane 2 ⇒ middle click open this folder in pane 2 in a new tab;
-
The second script is activated when I middle click blank space in the list:
Middle click in pane 1 ⇒ if pane 2 is already opened, close pane 2; if pane 2 is not yet opened, open pane 2 and in the current tab of pane 2, go to the same path as in pane 1;
Middle click in pane 2 ⇒ close pane 2
Please help with my script or give me some hint ;p
Need some help on mouse event script
Re: Need some help on mouse event script
The var you need is
and to see if dual pane is activated
see how you go with that info.
<get pane> which returns 1 or 2, so you'd use it something like
Code: Select all
if (<get pane> == 1) { .... }
else { ... }
<get #800>see how you go with that info.
Re: Need some help on mouse event script
This helps a lot! Thank you!jupe wrote: ↑12 Jul 2025 04:01 The var you need is<get pane>which returns 1 or 2, so you'd use it something likeand to see if dual pane is activatedCode: Select all
if (<get pane> == 1) { .... } else { ... }<get #800>
see how you go with that info.
XYplorer Beta Club