[TC 11.00b3] Problems with parameters for em_ commands

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Fla$her
Power Member
Power Member
Posts: 2293
Joined: 2020-01-18, 04:03 UTC

[TC 11.00b3] Problems with parameters for em_ commands

Post by *Fla$her »

HISTORY.TXT wrote:15.05.23 Added: Button bar, start menu: Multiple user-defined internal commands with parameters can now be chained, e.g. em_notepad c:path\file1,em_notepad c:path\file2 (32/64)
15.05.23 Added: Button bar, start menu, internal associations, hotkeys: User-defined internal commands em_name now support parameters, e.g. em_notepad c:path\file. Parameter must be in double quotes if it contains a comma (32/64)
1. The "Parameters:" field is still unavailable for buttons and custom commands.
2. Some comma-quoted commands in combination with others do not work.

em_TCFS2:
Command: %COMMANDER_PATH%\Addons\TCFS2\TCFS2.exe /ef
Parameters: %A%Z

TC 11b3 x32:
Working command: em_TCFS2 "tcm(-1,1) eval(settext_wait(`Hello, World!`,findwnd(Static,,findwnd(#32770))))"

Non-working command in combination with others: 330,em_TCFS2 "tcm(-1,1) eval(settext_wait(`Hello, World!`,findwnd(Static,,findwnd(#32770))))",330

Code: Select all

---------------------------
Total Commander
---------------------------
File not found!

330,em_TCFS2 "tcm(-1,1) eval(settext_wait(`Hello, World!`,findwnd(Static,,findwnd(#32770))))",330
---------------------------
+

Code: Select all

---------------------------
TCFS2
---------------------------
Error:
Invalid function call

Apply command:
tcm(-1

Terminate process?
---------------------------
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48070
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b3] Problems with parameters for em_ commands

Post by *ghisler(Author) »

1. That's on purpose, because when you have multiple chained commands, it wouldn't be clear to which of them the parameters field belongs.
2. I will check it.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2293
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b3] Problems with parameters for em_ commands

Post by *Fla$her »

1. Only one command is implied, without a chain.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48070
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b3] Problems with parameters for em_ commands

Post by *ghisler(Author) »

1. How would you prevent the user from putting multiple commands in the command field?
2. I can confirm the problem, it's caused by ,1 within the parameters. I will fix it.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2293
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b3] Problems with parameters for em_ commands

Post by *Fla$her »

1. You can lock the "Parameters:" field only if there is em_ in front and a comma outside the quotation marks.
2. ОК.
Overquoting is evil! 👎
Fla$her
Power Member
Power Member
Posts: 2293
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b3] Problems with parameters for em_ commands

Post by *Fla$her »

1. Added. Thanks!
2. Fixed.
Overquoting is evil! 👎
User avatar
white
Power Member
Power Member
Posts: 4614
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.00b3] Problems with parameters for em_ commands

Post by *white »

Moderator message from: white » 2023-05-24, 18:24 UTC

Moved to Fixed bugs.
Post Reply