Get("Trigger", "mousebtn") support for Popupmenu(s).

Features wanted...
Post Reply
eil
Posts: 1864
Joined: 13 Jan 2011 19:44

Get("Trigger", "mousebtn") support for Popupmenu(s).

Post 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).
Win 7 SP1 x64 100% 1366x768|1900x1080

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

Re: Get("Trigger", "mousebtn") support for Popupmenu(s).

Post by admin »

Not possible technically.

eil
Posts: 1864
Joined: 13 Jan 2011 19:44

Re: Get("Trigger", "mousebtn") support for Popupmenu(s).

Post 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?
Win 7 SP1 x64 100% 1366x768|1900x1080

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

Re: Get("Trigger", "mousebtn") support for Popupmenu(s).

Post 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. :whistle: )

klownboy
Posts: 4459
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8037 at 100% 2560x1440

Re: Get("Trigger", "mousebtn") support for Popupmenu(s).

Post 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=18062

Code: 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
You do not have the required permissions to view the files attached to this post.
Last edited by klownboy on 15 Dec 2022 18:40, edited 1 time in total.

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

Re: Get("Trigger", "mousebtn") support for Popupmenu(s).

Post by admin »

Not possible.

klownboy
Posts: 4459
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8037 at 100% 2560x1440

Re: Get("Trigger", "mousebtn") support for Popupmenu(s).

Post by klownboy »

admin wrote: 15 Dec 2022 16:10Not possible.
Oh well! :shock:

eil
Posts: 1864
Joined: 13 Jan 2011 19:44

Re: Get("Trigger", "mousebtn") support for Popupmenu(s).

Post 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)
Win 7 SP1 x64 100% 1366x768|1900x1080

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

Re: Get("Trigger", "mousebtn") support for Popupmenu(s).

Post by admin »

Nope.

Post Reply