solved [TC 11.50b2 and earlier] Copying a buttom with a single em_command to another TC instance does not always work

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 16098
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

solved [TC 11.50b2 and earlier] Copying a buttom with a single em_command to another TC instance does not always work

Post by *petermad »

How to reproduce:

Go to the folder with your TC ini files (cd %COMMANDER_INI_PATH%)

Make these entries in the usercmd.ini file:

Code: Select all

[em_Help]
cmd=cm_HelpIndex

[em_Restart]
cmd=cm_Exit 9
Make a test1.ini file with this content:

Code: Select all

[Configuration]
FirstTimeIconLib=0
[Buttonbar]
Buttonbar=%COMMANDER_INI_PATH%\TEST1.BAR
Make a test2.ini file with this content:

Code: Select all

[Configuration]
FirstTimeIconLib=0
[Buttonbar]
Buttonbar=%COMMANDER_INI_PATH%\TEST2.BAR
Make a test1.bar file with this content:

Code: Select all

[Buttonbar]
Buttoncount=1
button1=%COMMANDER_EXE%
cmd1=em_Restart
iconic1=0
menu1=Restart
Make a test2.bar file with the same content:

Code: Select all

[Buttonbar]
Buttoncount=1
button1=%COMMANDER_EXE%
cmd1=em_Restart
iconic1=0
menu1=Restart
Start a new instance of TC with the parameter /%COMMANDER_INI_PATH%\test1.ini
Start another instance of TC with the parameter /%COMMANDER_INI_PATH%\test2.ini


Copy the code here below to Clipboard:

Code: Select all

TOTALCMD#BAR#DATA
em_Help

wcmicons.dll,55
Open Help


-1
  1. In one of the two new TC instances right-click on the button bar and choose "Paste".
  2. Click on the new button with the question mark to check that the Help is opened - close the Help again.
  3. Now click on the first button in the button bar to restart TC - IMPORTANT!
  4. Right-click on the new button (the one with the question mark) and choose "Copy" - important - you can not skip this and use the current clipboard content.
  5. Switch to the other new TC instance.
  6. Right-click on the button bar and choose "Paste".
  7. Click on the new button with the question mark.
  8. An Error dialog pops up with the message: "Function not implemented! 10001".
  9. Now either right-click the button, choose "Change", and click OK - OR: click the restart button.
  10. Test the button again - now the help opens.
It only happens when the two instances of TC are NOT using the same default button bar, and it only happen if there is at least one em_command in either the button bar, or in the Main menu. The number displayed is 10000 + the number of em_commands in button bar plus main menu. TC has to be restarted after the first paste - probably so button command is indexed as 10001.

It does not happen if there is a Parameter in the button code like:

Code: Select all

TOTALCMD#BAR#DATA
em_Help
%N
wcmicons.dll,55
Open Help


-1
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
JOUBE
Power Member
Power Member
Posts: 1685
Joined: 2004-07-08, 08:58 UTC

Re: [TC 11.50b2 and earlier] Copying a buttom with a single em_command to another TC instance does not always work

Post by *JOUBE »

petermad wrote: 2024-10-18, 17:33 UTC ...many...
Thanks for testing and describing. ;-)

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

Re: [TC 11.50b2 and earlier] Copying a buttom with a single em_command to another TC instance does not always work

Post by *petermad »

JOUBE wrote: 2024-10-20, 19:47 UTC
petermad wrote: 2024-10-18, 17:33 UTC ...many...
Thanks for testing and describing. ;-)

Crazy
What do you mean with that??
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 16098
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.50b2 and earlier] Copying a buttom with a single em_command to another TC instance does not always work

Post by *petermad »

history.txt wrote:22.10.24 Fixed: Button bar context menu, copy to clipboard: Do not copy internal command index for em_commands (>=10000) to the clipboard (32/64)
Confirmed fixed in TC 11.50b3 :-)

Moderator message from: petermad » 2024-10-23, 20:33 UTC

Moved to "TC fixed bugs" from "TC11.x bug reports (English)"
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply