Page 1 of 1

Middle click toolbar button to execute it own script?

Posted: 07 Nov 2016 16:21
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

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

Posted: 07 Nov 2016 16:39
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)

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

Posted: 07 Nov 2016 20:53
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

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

Posted: 05 Dec 2021 02:14
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. 😢😭

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

Posted: 07 Jan 2022 17:27
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.

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

Posted: 10 Jan 2022 06:53
by jupe
Oh wow, you even added it to the GUI, cool. :beer:

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

Posted: 01 Feb 2022 17:20
by jupe
I just noticed that snippet for middle click works via GUI, but when done via SC the middle button is missing.

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

Posted: 01 Feb 2022 17:43
by admin
Ah yes, next beta.