The menu opened by OPENBARMENU is displayed at the cursor position.
Moderators: Hacker, petermad, Stefan2, white
The menu opened by OPENBARMENU is displayed at the cursor position.
Could you add parameters to OPENBARMENU to control the position where the menu appears?
Default position.
Display at the cursor position.
Display at the mouse position.
Default position.
Display at the cursor position.
Display at the mouse position.
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Re: The menu opened by OPENBARMENU is displayed at the cursor position.
Isn't that what already happens when you press Enter on the file if it is Internally associated with the file type?Display at the cursor position.
Or are you talking about using it with a keyboard shortcut to an em_command with the OPENBARMENU
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: The menu opened by OPENBARMENU is displayed at the cursor position.
The menu displayed by the em_command using OPENBARMENU, when shown with a hotkey, is also in the upper left corner.petermad wrote: 2024-10-25, 23:45 UTCOr are you talking about using it with a keyboard shortcut to an em_command with the OPENBARMENUDisplay at the cursor position.
I did not create a bar for a specific file type;
I created a bar to comment on the progress of files and folders. Therefore, I need to display the menu near the objects being operated on.
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Re: The menu opened by OPENBARMENU is displayed at the cursor position.
Is this suggestions not worth responding to?
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
- ghisler(Author)
- Site Admin
- Posts: 50463
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: The menu opened by OPENBARMENU is displayed at the cursor position.
OPENBARMENU is not meant to be used on buttons, although it can be used there. Instead, just enter the path+name to the button bar. Then there will be a checkbox to show it as a menu, and it will be opened directly below the button as expected.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: The menu opened by OPENBARMENU is displayed at the cursor position.
I am not using it as a button; I have made the bar into an em command and used OPENATTRIBUTES, hoping that the menu will appear at the cursor position. Originally, I could achieve this with autorun's ShowPopupMenu, but unfortunately, it does not support OPENATTRIBUTES.
Now I have to use AHK to move this menu to the cursor position, and I can clearly see a flashing movement process, which is quite awkward.
Now I have to use AHK to move this menu to the cursor position, and I can clearly see a flashing movement process, which is quite awkward.
Code: Select all
[Buttonbar]
Buttoncount=3
button1=wcmicons.dll,59
cmd1=OPENATTRIBUTES
param1==NotStarted
iconic1=0
menu1=(&A)NotStarted ⚪
button2=wcmicons.dll,60
cmd2=OPENATTRIBUTES
param2==InProcess
iconic2=0
menu2=(&B)InProcess ⏳
button3=wcmicons.dll,61
cmd3=OPENATTRIBUTES
param3==Completed
iconic3=0
menu3=(&C)Completed ✔️
[em_ProcessBar]
cmd=OPENBARMENU
param=%|COMMANDER_PATH|\USER\Bars\process.bar
Last edited by yahuu on 2024-11-09, 03:44 UTC, edited 1 time in total.
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Re: The menu opened by OPENBARMENU is displayed at the cursor position.
OPENBARMENU is a very good feature, and I hope it can play a greater role.
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Re: The menu opened by OPENBARMENU is displayed at the cursor position.
The author has already been asked to support such parameterized commands for WM_CopyData, but there is still no reaction. So this is not so much a plugin problem as a TC problem.yahuu wrote: 2024-11-09, 03:41 UTC Originally, I could achieve this with autorun's ShowPopupMenu, but unfortunately, it does not support OPENATTRIBUTES.
But you can still run ShowPopupMenu ... CommandExec em_OPENATTRIBUTES <Settings>, where OPENATTRIBUTES= and %A are written.
Last edited by Fla$her on 2024-11-09, 08:30 UTC, edited 1 time in total.
Overquoting is evil! 👎
Re: The menu opened by OPENBARMENU is displayed at the cursor position.
Using ShowPopupMenu to display the .bar, and calling OPENATTRIBUTES with em_OPENATTRIBUTES in the .bar is also ineffective.Fla$her wrote: 2024-11-09, 05:24 UTC But you can still run ShowPopupMenu ... CommandExec em_OPENATTRIBUTES <Settings>, where OPENATTRIBUTES= and %A are written.
The .bar functions normally as a menu in TC.
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Re: The menu opened by OPENBARMENU is displayed at the cursor position.
2yahuu
Sorry, crossed it out, it doesn't work that way.
But personally, I am satisfied with the ability to position the menu in the center of the active panel or with reference to its borders, taking into account the selection of several objects.
As for the request itself, I would prefer a parameter (path to ini with [Associations]) for cm_ContextMenuInternal and cm_ContextMenuInternalCursor.
Sorry, crossed it out, it doesn't work that way.
Not the mouse itself, but the mouse cursor. You can do this with ShowPopupMenu.
You can try ShowPopupMenu + WinSetPos. You can also move the cursor with cm_ShowHint (SendCommand 2914).
But personally, I am satisfied with the ability to position the menu in the center of the active panel or with reference to its borders, taking into account the selection of several objects.
As for the request itself, I would prefer a parameter (path to ini with [Associations]) for cm_ContextMenuInternal and cm_ContextMenuInternalCursor.
Overquoting is evil! 👎
Re: The menu opened by OPENBARMENU is displayed at the cursor position.
Thank you for your suggestion. Currently, I am using AHK for movement. The parameters can be set to the mouse position or the cursor position.
However, the menu will first appear in the top left corner and then be moved to the specified position, so there is a movement process involved.
However, the menu will first appear in the top left corner and then be moved to the specified position, so there is a movement process involved.
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Re: The menu opened by OPENBARMENU is displayed at the cursor position.
The necessary functionality has already been added to ShowPopupMenu. Wait for the update.
Overquoting is evil! 👎
Re: The menu opened by OPENBARMENU is displayed at the cursor position.
With the help of Loopback, I used the following method, which is better than the AHK solution. From the moment it appears to jumping to the target position, it is almost imperceptible.Fla$her wrote: 2024-11-10, 18:02 UTC The necessary functionality has already been added to ShowPopupMenu. Wait for the update.
Code: Select all
Func DisplayProcessBar
CommandExec em_ProcessBar
Sleep(15)
MouseGetPos("x", "y")
WinSetPos(x+10, y,"","","", WinFind(0, "#32768"))
EndFunc
[em_ProcessBar]
cmd=OPENBARMENU
param=%|COMMANDER_PATH|\USER\Bars\process.bar
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
Re: The menu opened by OPENBARMENU is displayed at the cursor position.
What do you mean by the target position? You had to place it under the cursor.
1. New screen coordinate parameters <x> <y>.
2. New /A:16384 flag for the location under the cursor on the active panel.
As I have already written, it's better to discuss these things in the appropriate topic.
Overquoting is evil! 👎
Re: The menu opened by OPENBARMENU is displayed at the cursor position.
That's itFla$her wrote: 2024-11-15, 02:06 UTC What do you mean by the target position? You had to place it under the cursor.
2. New /A:16384 flag for the location under the cursor on the active panel.
License #301983 (2016)
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1
TC 11.51 32+64bit on 10 (21H2) 64bit, 'Everything' 1.5.0.1388a
Autorun 2.2.18.1