SmartContextMenu icon indicating copy to clipboard operation
SmartContextMenu copied to clipboard

Limit to the title bar

Open gerroon opened this issue 11 months ago • 2 comments

Hi

Is there a way to limit the rigger area to the title bar only? This is triggered everywhere in a Windows app.thnx

gerroon avatar Jan 09 '25 02:01 gerroon

Hi Alexander,

I would like to support gerroon's suggestion, though I fear that it will not be easily possible to realize it.

I appreciated the method used in SmartSystemMenu to open the context menu, namely simply by a right mouse click into the title bar of a window (and only there). SmartContextMenu requires by default the hotkey "Ctrl + Right Mouse Button" which is a little bit less comfortable.

I am aware that the hotkey can be changed in the settings and that even a simple click on the Right Mouse Button could be (theoretically) chosen. But practically this is impossible for the reason mentioned by gerroon: The command (e.g. click on the Right Mouse Button) would trigger the start of the context menu whenever the click is performed anywhere (not only in the title bar). And this would of course be an undesired event as there are various other actions one would like to start for example with a right mouse click.

I assume that the way it worked in SSM was bound to the hooks which are no longer used in SCM. If there is another way to "restrict" the effect of the command to open the context menu to the title bar, it would be fine.

But in any case SCM is an excellent program. Thank you once more for all your great work!

Peter-202122 avatar Feb 15 '25 02:02 Peter-202122

@gerroon test "legacy" project:

https://github.com/AlexanderPro/SmartSystemMenu („SSM”)

if you have admin rights at almost all your machines where you need limit action to title bar only.

krystian3w avatar Jun 30 '25 12:06 krystian3w