Need some help on mouse event script

Discuss and share scripts and script files...
Post Reply
Akane2092
Posts: 7
Joined: 12 Jul 2025 03:42

Need some help on mouse event script

Post 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

jupe
Posts: 3292
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Need some help on mouse event script

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

Akane2092
Posts: 7
Joined: 12 Jul 2025 03:42

Re: Need some help on mouse event script

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

Post Reply