Page 1 of 1

Need some help on mouse event script

Posted: 12 Jul 2025 03:44
by Akane2092
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

Re: Need some help on mouse event script

Posted: 12 Jul 2025 04:01
by jupe
The var you need is <get pane> which returns 1 or 2, so you'd use it something like

Code: Select all

if (<get pane> == 1) { .... }
else { ... }
and to see if dual pane is activated <get #800>
see how you go with that info.

Re: Need some help on mouse event script

Posted: 12 Jul 2025 04:10
by Akane2092
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 like

Code: Select all

if (<get pane> == 1) { .... }
else { ... }
and to see if dual pane is activated <get #800>
see how you go with that info.
This helps a lot! Thank you!