Middle click toolbar button to execute it own script?

Features wanted...
Post Reply
xnmp
Posts: 88
Joined: 15 Mar 2013 04:46

Middle click toolbar button to execute it own script?

Post by xnmp »

I have similar suggestion/wish with this topic viewtopic.php?f=5&t=5681
but if possible, middle click will execute another script (it own script),instead of execute right click script
Right click on toolbar button open up context menu instead of directly execute the script immediately ,which cause a bit incovenient
if we have option like middle click which directly execute the script like left click, i think it would be more convenient
Thanks

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Middle click toolbar button to execute it own script?

Post by highend »

get "Trigger", [mode=mousebtn]
mousebtn: Returns the mouse button that triggered a script. Returned values:
None = 0
LeftClick = 1
RightClick = 2
MiddleClick = 4 (planned)
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: Middle click toolbar button to execute it own script?

Post by klownboy »

Since you say you have a context menu come up on a right click of a CTB, you need to set this tweak:

Code: Select all

CTBNoRClickDefaultCommands=1
It will allow you to set the right mouse button of a CTB to execute a command or execute a script directly or bring up a menu without the context menu displaying.
Instructions on how to apply the tweak are available here: http://www.xyplorer.com/faq-topic.php?id=tweak
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

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

Re: Middle click toolbar button to execute it own script?

Post by jupe »

Is there any possibility this
(planned)
feature will/could get implemented in the near term? I am just referencing the basic SC get("trigger") == 4; plan being fulfilled, not going to the extent of adding input fields etc. to the edit userbutton dialog, although that would be useful, alternatively if there is no chance it will happen imminently it may be time to remove the (planned) text from the help file. 😢😭

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Middle click toolbar button to execute it own script?

Post by admin »

I'll add it to the next beta.

The December flood of bugs set me back a little. I'm catching up now.

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

Re: Middle click toolbar button to execute it own script?

Post by jupe »

Oh wow, you even added it to the GUI, cool. :beer:

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

Re: Middle click toolbar button to execute it own script?

Post by jupe »

I just noticed that snippet for middle click works via GUI, but when done via SC the middle button is missing.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Middle click toolbar button to execute it own script?

Post by admin »

Ah yes, next beta.

Post Reply