Solved [TC 10.52rc1] Double-clicking cm_exit 1 at the command line does not work

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Elwin_Ransom
Junior Member
Junior Member
Posts: 38
Joined: 2022-07-31, 18:14 UTC
Location: Perelandra

Solved [TC 10.52rc1] Double-clicking cm_exit 1 at the command line does not work

Post by *Elwin_Ransom »

Steps to reproduce:

1) Place the cursor on the command line, type cm_exit 1.
2) Double click on cm_exit 1.
3) Expected: command execution, program restart.
4) Instead: nothing happens, but if you now close TC with the red Close button in the corner of the window, the program will restart.
Last edited by Elwin_Ransom on 2022-10-10, 22:51 UTC, edited 1 time in total.
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: [TC 10.52rc1] Double-clicking cm_exit 1 at the command line does not work

Post by *Dalai »

The command line is a text field. Double-clicking on text within that field is supposed to select that word that's been clicked on. At least that's what I expect. Why do you expect TC to execute that command? Is it just to confirm the command? If so, just press Enter (it's a command line, so I don't think it's that far fetched).

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
User avatar
white
Power Member
Power Member
Posts: 4593
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 10.52rc1] Double-clicking cm_exit 1 at the command line does not work

Post by *white »

Dalai wrote: 2022-10-09, 21:28 UTC Why do you expect TC to execute that command?
Because it works that way.

Issue confirmed.
And when I type dir and hold Shift and double-click, a command prompt is opened on top of TC, but TC is active. So if I press Alt+F4 then TC is closed.
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: [TC 10.52rc1] Double-clicking cm_exit 1 at the command line does not work

Post by *Dalai »

white wrote: 2022-10-09, 21:41 UTC
Dalai wrote: 2022-10-09, 21:28 UTC Why do you expect TC to execute that command?
Because it works that way.
OK, it seems you're right. Well, I didn't expect this behavior at all. And honestly, I don't see a reason to use the mouse to confirm a command.

Anyway, bug confirmed. cm_Exit alone (without parameter) is the same.

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
User avatar
Elwin_Ransom
Junior Member
Junior Member
Posts: 38
Joined: 2022-07-31, 18:14 UTC
Location: Perelandra

Re: [TC 10.52rc1] Double-clicking cm_exit 1 at the command line does not work

Post by *Elwin_Ransom »

Dalai wrote:I don't see a reason to use the mouse to confirm a command
This can be useful when you use copy/paste. You hold the mouse with your first hand, Ctrl+C some command in the text, move the cursor to the command line, Ctrl+V, double-click.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.52rc1] Double-clicking cm_exit 1 at the command line does not work

Post by *petermad »

These commands also don't wörk with double-click in the command-line:

Code: Select all

cm_Minimize
cm_Maximize
cm_Restore

and of course these - but that's to be expected:

Code: Select all

cm_ClearCmdLine
cm_NextCommand
cm_PrevCommand
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10.52rc1] Double-clicking cm_exit 1 at the command line does not work

Post by *ghisler(Author) »

Sorry, there are no plans to support this.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4593
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 10.52rc1] Double-clicking cm_exit 1 at the command line does not work

Post by *white »

ghisler(Author) wrote: 2022-10-10, 13:24 UTC Sorry, there are no plans to support this.
So only the weirder case of restarting TC by clicking the close button is supported?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10.52rc1] Double-clicking cm_exit 1 at the command line does not work

Post by *ghisler(Author) »

TC posts a message WM_SYSCOMMAND, SC_CLOSE to itself in both cases, but the message never arrives when using the double click. I could not find any reason for this to happen, so it will not be supported, sorry.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4593
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 10.52rc1] Double-clicking cm_exit 1 at the command line does not work

Post by *white »

But can the command be disabled (do nothing) when people use double-click?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10.52rc1] Double-clicking cm_exit 1 at the command line does not work

Post by *ghisler(Author) »

I found a solution: it seems to work when I call "Close" instead of posting WM_SYSCOMMAND, SC_CLOSE. I hope that this doesn't have any negative side effects. I will not change the other system commands for now.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.52rc1] Double-clicking cm_exit 1 at the command line does not work

Post by *petermad »

histpry.txt wrote:10.10.22 Fixed: CM_EXIT didn't work when starting command line via double click instead of Enter (32/64)
Confirmed fixed in TC 10.52rc2 :-)
Last edited by petermad on 2022-10-10, 23:06 UTC, edited 1 time in total.
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
white
Power Member
Power Member
Posts: 4593
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 10.52rc1] Double-clicking cm_exit 1 at the command line does not work

Post by *white »

petermad wrote: 2022-10-10, 20:42 UTC Confirmed fixed in TC 10.62rc2 :-)
If you mean 10.52rc2 then confirmed ;)
User avatar
Elwin_Ransom
Junior Member
Junior Member
Posts: 38
Joined: 2022-07-31, 18:14 UTC
Location: Perelandra

Re: [TC 10.52rc1] Double-clicking cm_exit 1 at the command line does not work

Post by *Elwin_Ransom »

Everything is fine now. Thanks for the fix.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Solved [TC 10.52rc1] Double-clicking cm_exit 1 at the command line does not work

Post by *petermad »

2white
If you mean 10.52rc2 then confirmed
I have fixed the fixed comment now :-)
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply