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).
Get("Trigger", "mousebtn") support for Popupmenu(s).
-
eil
- Posts: 1864
- Joined: 13 Jan 2011 19:44
Get("Trigger", "mousebtn") support for Popupmenu(s).
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).
Not possible technically.
FAQ | XY News RSS | XY X
-
eil
- Posts: 1864
- Joined: 13 Jan 2011 19:44
Re: Get("Trigger", "mousebtn") support for Popupmenu(s).
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?
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).
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.
)
FAQ | XY News RSS | XY X
-
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).
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;}
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:
-
klownboy
- Posts: 4459
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8037 at 100% 2560x1440
-
eil
- Posts: 1864
- Joined: 13 Jan 2011 19:44
Re: Get("Trigger", "mousebtn") support for Popupmenu(s).
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:
XYplorer Beta Club