OPENBAR as menu (when called via em_) from buttonbar
Moderators: Hacker, petermad, Stefan2, white
OPENBAR as menu (when called via em_) from buttonbar
When I open a buttonbar file from the button bar it has the option to "show as menu", but now I want to use a shortcut as well to open that menu, so I created a em_mybar and the OPENBAR pathtomy.bar
Is there a way to also have it "show as menu" that way as well?
Is there a way to also have it "show as menu" that way as well?
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Re: OPENBAR as menu (when called via em_) from buttonbar
It appears that it is not possible with an em_command even though the option "Show as menu" becomes available when you edit the em_command with an OPENBAR command via the "Choose Command" dialog (cm_CommandBrowser) - https://madsenworld.dk/tcmd/openbar.png
I have posted a bug report about this here: https://www.ghisler.ch/board/viewtopic.php?f=35&t=74866
I have posted a bug report about this here: https://www.ghisler.ch/board/viewtopic.php?f=35&t=74866
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
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: OPENBAR as menu (when called via em_) from buttonbar
It's not possible because Total Commander wouldn't know where to show that menu when it's not opened from a button.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: OPENBAR as menu (when called via em_) from buttonbar

@ghisler(Author) Would you consider to allow shortcuts to be assigned directly to a button? If you have a "assign shortcut" button there it could open the redefine keyboard shortcuts/choose commands window where you can select them buttonX
MyBar1:Button29=mspaint.exe -> ctrl+m
Of course the button bar editor would have to be aware of changes in order so it move button29 to button5 it would either display a warning or automatically updated the shortcut - I think that would be a user friendly method.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: OPENBAR as menu (when called via em_) from buttonbar
The button bar does support a very limited set of hotkeys.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: OPENBAR as menu (when called via em_) from buttonbar
I am aware of that, but why should that prevent TC form opening it as a meny WHEN the command is used in a button.ghisler(Author) wrote: 2021-06-18, 15:23 UTC It's not possible because Total Commander wouldn't know where to show that menu when it's not opened from a button.
If you are not going to change this, I suggest that you disable the shift you see when editing and em_command in the "Change single button" dialog when opened from the "Choose Command" dialog . Here the option "Run minimized" is shifted to "Show as menu", when either OPENBAR or xxx.bar is entered in the Command field - and that is misleading if "Show as menu" is not supported for em_commands.
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
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: OPENBAR as menu (when called via em_) from buttonbar
Because the em_command does not "know" it was opened from a button.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: OPENBAR as menu (when called via em_) from buttonbar
@ghisler(Author) Another suggestion
You're probably familiar with the ribbon toolbars in programs such as Word, Excel etc whereby after pressing the Alt key once, tooltip letters appear near the buttons which you can press to access that button via the keyboard. Have you considered adding this to the TC buttonbar?
Introduce a cm_ShowButtonBarToolTip to activate it so the user can setup their preferred hotkey to use this feature.
How would it look? https://github.com/hi5/_resources/blob/master/ButtonBarKeyboard.png
(the screenshot comes from the AutoHotkey implementation I've just made, built-in would be superior of course)
You're probably familiar with the ribbon toolbars in programs such as Word, Excel etc whereby after pressing the Alt key once, tooltip letters appear near the buttons which you can press to access that button via the keyboard. Have you considered adding this to the TC buttonbar?
Introduce a cm_ShowButtonBarToolTip to activate it so the user can setup their preferred hotkey to use this feature.
How would it look? https://github.com/hi5/_resources/blob/master/ButtonBarKeyboard.png
(the screenshot comes from the AutoHotkey implementation I've just made, built-in would be superior of course)
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Re: OPENBAR as menu (when called via em_) from buttonbar
2hi5
Currently I have 63 buttons on my button bar. How to access those that come after 26 (alphabet only) or 36 (alphabet plus numbers) or how many characters a certain alphabet in some language has? How does that work in the program types you mentioned? (No I don't have or use anything that works like these.)
Regards
Dalai
Currently I have 63 buttons on my button bar. How to access those that come after 26 (alphabet only) or 36 (alphabet plus numbers) or how many characters a certain alphabet in some language has? How does that work in the program types you mentioned? (No I don't have or use anything that works like these.)
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: OPENBAR as menu (when called via em_) from buttonbar
Depends on the program, but the usual solution is if there are over 26/36 it becomes two letters, e.g. AA or Z1 which gives plenty of options...
I don't know how it works particular keyboard layouts but I assume it works the same e.g. use я not q
I don't know how it works particular keyboard layouts but I assume it works the same e.g. use я not q
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Re: OPENBAR as menu (when called via em_) from buttonbar
So, the input would have to be differentiated by time (or timing) then, or how does it work to see if Alt+A or Alt+AA was pressed?
Regards
Dalai
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: OPENBAR as menu (when called via em_) from buttonbar
Yes, you activate it first, so you press alt, release alt, the tooltips appear.
Now the A-Z, 0-9 are "captured" and when pressed the corresponding button is "clicked". (so you don't press alt-a, but alt, release alt, then a)
(in my script pressing any modifier (ctrl, alt, shift, winkey, appskey) or esc and mouse buttons the tooltips are hidden again and A-Z 0-9 are free again)
If you have "double letters" you can check if there is a second key press within say 400 ms, if so click the "aa" button otherwise it remains an "a".
Now the A-Z, 0-9 are "captured" and when pressed the corresponding button is "clicked". (so you don't press alt-a, but alt, release alt, then a)
(in my script pressing any modifier (ctrl, alt, shift, winkey, appskey) or esc and mouse buttons the tooltips are hidden again and A-Z 0-9 are free again)
If you have "double letters" you can check if there is a second key press within say 400 ms, if so click the "aa" button otherwise it remains an "a".
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)