The button does not work from the "Show as menu" toolbar

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

The button does not work from the "Show as menu" toolbar

Post by *sa16 »

User command (usercmd.ini):

Code: Select all

[em_tc]
cmd=""%COMMANDER_EXE%" /O /S"
param=/L=%A1 /R=%A2
Button:

Code: Select all

TOTALCMD#BAR#DATA
em_tc
"%T" "%P"
wcmicons.dll,37
Swap panels


-1
The button properly swap panels when called from the toolbar.
When you access the button from the "Show as menu" toolbar, the button does not work.
Can this be changed?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: The button does not work from the "Show as menu" toolbar

Post by *ghisler(Author) »

Have you tried cm_Exchange or cm_ExchangeWithTabs instead?
Author of Total Commander
https://www.ghisler.com
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Re: The button does not work from the "Show as menu" toolbar

Post by *sa16 »

It's just an example.
I know about the internal commands.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: The button does not work from the "Show as menu" toolbar

Post by *ghisler(Author) »

The menu probably blocks the main program.
Author of Total Commander
https://www.ghisler.com
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Re: The button does not work from the "Show as menu" toolbar

Post by *sa16 »

Parameters are not transferred to the button...
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: The button does not work from the "Show as menu" toolbar

Post by *petermad »

I can confirm that the button described by sa16 does not work when used in a button bar that is opened as a menu, whereas it works when the button bar is opened as a bar.

I tried simplifying the em_command to:

Code: Select all

[em_tc]
cmd=%COMMANDER_EXE% /O /S
param=%A
Which still works fine in a bar but not in a bar menu.

If I put a ? in font of the param %A - I can see that when the command is used in a bar the values of "%T" and "%P" are transferred to the %COMMANDER_EXE% command - but when I use it in a bar menu nothing is transferred - so there is a problem using the %A (%A1, %A2 etc) parameters with an em_command in a button bar menu.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Re: The button does not work from the "Show as menu" toolbar

Post by *sa16 »

Adding a question mark (for Dialog box) to the parameters field ( ?"%T" "%P" ) only works for the toolbar, not the menu.
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: The button does not work from the "Show as menu" toolbar

Post by *petermad »

sa16 wrote: 2024-01-30, 12:39 UTC Adding a question mark (for Dialog box) to the parameters field ( ?"%T" "%P" ) only works for the toolbar, not the menu.
Yes, for this particular button - but not for buttons in general in menus
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Re: The button does not work from the "Show as menu" toolbar

Post by *sa16 »

Another example of a problematic button:

Code: Select all

TOTALCMD#BAR#DATA
cm_Select
3
wcmicons.dll,39



-1
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: The button does not work from the "Show as menu" toolbar

Post by *petermad »

Another example of a problematic button:
Confirmed, only one file is selected when this button is used in a button menu
.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: The button does not work from the "Show as menu" toolbar

Post by *petermad »

history.txt wrote:31.01.24 Fixed: Button bar: internal or user defined commands (cm_x or em_x) didn't support parameters when showing bar file as dropdown list (32/64)
confirmed fixed in TC 11.03rc4 :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Re: The button does not work from the "Show as menu" toolbar

Post by *sa16 »

2ghisler(Author)
31.01.24 Fixed: Button bar: internal or user defined commands (cm_x or em_x) didn't support parameters when showing bar file as dropdown list (32/64)
It was as if everything had worked.
Thanks a lot!
Post Reply