Page 1 of 1
Get("Trigger", "mousebtn") support for Popupmenu(s).
Posted: 14 Dec 2022 09:39
by eil
Just as title says. Help file states "Currently implemented only for Custom Toolbar Buttons.", so would be grate to extend.(and actually adding middle click support, which was planned, would be cool too)
By popupmenu(S) i mean them all(popupnested, etc).
Re: Get("Trigger", "mousebtn") support for Popupmenu(s).
Posted: 15 Dec 2022 07:37
by admin
Not possible technically.
Re: Get("Trigger", "mousebtn") support for Popupmenu(s).
Posted: 15 Dec 2022 10:07
by eil
Shame. I thought as AHK can do this, and XY already can partially, for buttons, so it's just a matter of spreading the support.
Shift/Control detect for popupmenus is already possible, but it's not as comfortable to use as only mouse.. maybe at least some rocket-click may be tracked(right-hold + left click) or long-left-press may be detectable?
Re: Get("Trigger", "mousebtn") support for Popupmenu(s).
Posted: 15 Dec 2022 10:43
by admin
The item selection in a popup menu is on mouseup. When the button is up, I can't tell which was the last button down. (Well, I could, but it's extremely unpleasant.

)
Re: Get("Trigger", "mousebtn") support for Popupmenu(s).
Posted: 15 Dec 2022 13:44
by klownboy
Hey Don, would it be possible to incorporate mouse right detection in standard or normal XY menus which do not use SC popupmenu? Say for example, something like this below. The equivalent AHK code detecting a context menu, is provided in the link
viewtopic.php?t=18062Code: Select all
$rmb = get("trigger","mousebtn");
"XY Updater<tab>Malware Bytes|<xyicons>\XY_favicon.ico" if($rmb=="2") {
open "D:\Tools\Malwarebytes\Mbam.exe";}
else {update 1+16+128;wait 200;savesettings 1;}
"Services<tab>Task Manager|C:\Windows\System32\taskmgr.exe" if($rmb=="2") {
open "C:\Windows\System32\taskmgr.exe";}
else {run "services.msc";}
"Control Panel<tab>CP all tasks|C:\Windows\System32\shell32.dll /22" if($rmb=="2") {
run "%windir%\explorer.exe shell:::{ED7BA470-8E54-465E-825C-99712043E01C}";}
else {#640;}
XYplorer menu using right click detection.jpg
Re: Get("Trigger", "mousebtn") support for Popupmenu(s).
Posted: 15 Dec 2022 16:10
by admin
Not possible.
Re: Get("Trigger", "mousebtn") support for Popupmenu(s).
Posted: 15 Dec 2022 18:42
by klownboy
admin wrote: ↑15 Dec 2022 16:10Not possible.
Oh well!

Re: Get("Trigger", "mousebtn") support for Popupmenu(s).
Posted: 21 Dec 2022 15:15
by eil
admin wrote: ↑15 Dec 2022 10:43
When the button is up, I can't tell which was the last button down.
Suddenly got an idea - can you know if both buttons were used?(rocket-click of sorts, like that one in recent updates)
Re: Get("Trigger", "mousebtn") support for Popupmenu(s).
Posted: 21 Dec 2022 17:58
by admin
Nope.