Using %T%M %P%S in my Delphi 5 program

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
eitang
Senior Member
Senior Member
Posts: 250
Joined: 2003-05-19, 20:08 UTC
Location: France
Contact:

Using %T%M %P%S in my Delphi 5 program

Post by *eitang »

Hi all,

As said, I am using (the Button-Bar's button params) %T%M %P%S in my Delphi program. It has worked pretty well for several years now.

But I discovered that even when no selected files exist (nothing is red) some parameters make it to my program's command line.

Is there a way to ensure that ONLY selections make it to the parameters?

I realize that I ALSO send the paths. So some text is sent anyway, and I could check it in my Delphi program, but am curious to know if I can send the params ONLY if one, or several, items ARE selected (files or folders).

Thanks for your thinking,
Best Wishes,

Eitan Gilboa (License #: 17011)
URL: https://eitang.pagesperso-orange.fr/
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, TC always treats the item under the cursor as selected when there is no other selection.
Author of Total Commander
https://www.ghisler.com
eitang
Senior Member
Senior Member
Posts: 250
Joined: 2003-05-19, 20:08 UTC
Location: France
Contact:

Post by *eitang »

Hi Christian,

Thanks for the quick (as usual) reply.

>> TC always treats the item under the cursor as selected when there is no other selection.

I feared this answer... Too bad. I'll have to work around the problem.

Eitan Gilboa
Best Wishes,

Eitan Gilboa (License #: 17011)
URL: https://eitang.pagesperso-orange.fr/
Post Reply