Wish: Confirm question on Exit of TC

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

User avatar
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

karlchen wrote:
There's a good chance it will be lost in a list on thousands of such trivial enhancements which may or may not be implemented at a later point...
Shall we conclude that no further requests should be posted until this list has been emptied one fine day? :shock:

Karl
:)

Of course not. Many trivial requests have been requested over these years. Several of them (requested at a later time than others) have already been implemented while others are still buried at some posts here in the forum. I'm just saying, it might be better to seek a path not as elegant as Perplexer's suggestion which has a better chance of being implemented now (when the discussion is hot and active) than drop a suggestion, forget it and discover this thread after 2-3 years at a random search and realize it has not been implemented yet. :) I've seen several threads here with this pattern.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
leonbloy
Junior Member
Junior Member
Posts: 16
Joined: 2009-06-22, 13:53 UTC

Post by *leonbloy »

I heartly endorse this feature. I frequently close TC by mistake, and I feel like a fish taken out of the water :lol:
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

You can get a confirmation on closing TC as follow
1- Pack a text file to ZIP
2- Once TC start, enter above Zip and select the text file then press F4
3- Don't close the editor and you will got a confirmation message every time you try to close TC.

This is funny workaround until we have a dedicating option :lol:
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Someone has asked this feature on Russian board and I made a plugin AskExit. Plugin may be loaded via Autorun.wdx or directly using color template that uses field AskExit.Autorun (install it as content plugin, go to 'define colors by filetype', 'add', 'define', on plugins tab choose AskExit.Autorun > 0 and save preset; if you already have saved autorun preset for some other plugin, just add another condition on its plugin page). Version for TCx64 is also included.

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="AskExit.7z"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="AskExit.7z"

N3q8ryccAAPJYlttpggAAAAAAAAiAAAAAAAAAF730AUAJpaOcAAX9+wFu+r0/5QBL0TuTr0JNTj9
wXIs+2C8FA6O7vPnB3UmwHoI1yz34WmVTTWglcU2hJnQdzChVQ5ISHLBgmBQy3zuSK8o4CGAm7w+
2OfgBKDctr8MaZv1jSZKtbYaz7u0drodRIdB0I8uICseT1Q2HgRuEMvspmMx1OC4YKVZg/OlcA2n
Eqd5FfX0KgfEfaVAxC27q4ezn2KKt8+qjbtw45Rl5m3JtO7+mMgM+Dcm3Ye8bYq+xhULnwArF+Wd
HsH6NknVdb3gMqg9yaj0abBO72jumvKUFOW5vdkTi1RjNJ06ueHJrfUvDkpQX3/jpolcXetIsm/D
wwXig265//oncMsZ3M99ERY0LnI7uVa2NCj/u/y74CfGsUcU7teFc7kvJrRN5KWV+G6I6oxfEeGt
0UTUjsrIE1kh4nu6SOD166+TgG7DzrgNM0EQtHh3yxLWoQRgSS9bV/tnpzOVM3uaKGoRvpU44ObG
nTNiV8J3fVAoux5YWrbgazxsXuKWEcTJZr2g+bd0ynt6e3lNuf5lPLDjPH1OgJGzSYznH8FMrUDH
iAxpVxRY3cq4STWasYeEPnRYK6E9Tn4Bi2r0iN/VW3iViJ/aDAjQg3IgQ72+FX5YhMOz8DfahAv+
bDw7Ud12tXEWHskNmPTZQ+caY+8TLX9P2IdfQQ+qV1803yjR75KTRkFp0L2ejxddeBj2YmEtz8g1
nQ9vyHvcUVf/yJKK1eypPpjcF3rGo46oAukiEGRCwBpLMaQ+fJN1hRo2saqnesU6OnBX5tVq4Hm7
WzyBv1BbANuEc2mrBDlcd43UCsR8Yxd6IqK+9LaE59GRU0f/0XZrDACiP435+OrNx7RNlhYMCRJb
TfN0Ek6Z6tNoFCJdMJdWQYToGsaPtMeuCYDGFFug6pCYZ+6parJKKUtgdeePiuk23masl0N/qWGf
20QOqn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jYildMjgnyCA
qmLgE6wLIsUXSnXkRTayAYtZTOrAX1lLlalJt/pN/n6A8kcAhio194PKtAmMHwHTEgQr+d7N0t/F
Q8g7llm7VZ4qorH/S6ASyy5fwBFIxJOxOzhm7+OnsewKKVSZ9d16dUalRI94EiIXW94clnyyrD6s
FtGh9JZGciUYv3Dy1XG70TpcKLKK2CfcCJLZvCPpz8Qw4rdTcFX9EoapYhk2TkrYE7nQ0+8AX9FG
ZbdFEjAW+oBdmcDp86iRQbmpqNzJ6MUnQwCsnwBEghLz/cNLAH8/wm9gNjd8N6dUHypRR9tqh/pv
L3CL9wI1XA2KCnseltQrDCf4O1bqoHHF5ajvOI1hACJP3D2B8cXBReGpA4lqjuaNajp8PQY5ctUX
obb641PQA6X4S1Q+Otf22rRx4dWRiFQj7EoaGe2ZGcKlatIewVA7g8ZZbafYifUddoFUXTXtpXbg
t3REXFsEY9h/Q2am4zkox+cqpogwlXq5nZybrMCnckdVE6leCkdXNUfKLG1eLXHdvbEXV/Xnh3FF
z65aZnfBV/efgD641YOqyUfgB3EhCl/rztOIOpzGs1sZH67MfrXCKd0YG9kw1ao2eXARVHNlZcEm
7tqcF+h7+yNkohCfXHaZ+AK6HjNdRqlWqOdoRnxSIjO/FkQZojSWAvzuFyrhxs9KjsWzvdHmY5CQ
5Qsm4mZve8tE6lCnaOetQqxgTmxiH847H1e9EP1WGEgPh7Lt7P/xXWCyC/0SxhIAQJVAjeOwYVuU
Aoche+n8zHb9JR2DKdyATq9Lh9AdzzAtAAAAgTMHrjGfAYay6bsllzICA0DaMu/19n7kPB4N+PSW
yx3sTDqZ9txQonBsOqR8nild+/fhhNANFdBs5z67t5tfEzNySXluLMYdcT3zC9LQLxXgktheZxVs
fgkHgcdXOF/1V4D8queguAlhnxfPuOAXBog2AQlwAAcLAQABIwMBAQVdABAAAAyAnAoBdq3+hwAA

You may hold Shift to close TC w/o question. Also, you may assign cm_Exit to any key combination with Shift (e.g. Alt+Shift+F4) - it will work too.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3896
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Well, I just added a line to WINCMD.INI

Code: Select all

MinimizeOnClose=1
This will just minimize TC to tray if I mistakenly close it.

In the rare case you want to really close TC, you have to explicit choose the main menu entry (but I have not used it for years ;) )
#5767 Personal license
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Some people use F-buttons panel and sometimes click Alt+F4 instead of F8 there (not me). :D
User avatar
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

MVV wrote:Some people use F-buttons panel and sometimes click Alt+F4 instead of F8 there (not me). :D
Or ALT+F4 instead of ALT+F3 (yes, yes, not me, not me... :D)
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

wanderer wrote:
MVV wrote:Some people use F-buttons panel and sometimes click Alt+F4 instead of F8 there (not me). :D
Or ALT+F4 instead of ALT+F3 (yes, yes, not me, not me... :D)
You may redefine Alt+F4 to some other command. :)

PS. It was really not me=)
User avatar
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

MVV wrote:
wanderer wrote:
MVV wrote:Some people use F-buttons panel and sometimes click Alt+F4 instead of F8 there (not me). :D
Or ALT+F4 instead of ALT+F3 (yes, yes, not me, not me... :D)
You may redefine Alt+F4 to some other command. :)

PS. It was really not me=)
I had done it in the past but i found it irritating so i disabled it. I want to be able to use ALT+F4. Now i just have to find the time to setup the solution provided here... :)
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Perplexer
Junior Member
Junior Member
Posts: 55
Joined: 2007-09-22, 10:55 UTC

Post by *Perplexer »

So, here I am, again, 4 years later. :shock: I just accidentaly closed TC for the one millionth time and I remembered this thread existed.

So is there any chance this "confirm before closing" option will be added to TC ? :D
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Natively - I doubt. Using plugin - read my post above how to enable confirmation on close.
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Meanwhile, here is an interim solution.

Code: Select all

Loop
{
	WinWait, ahk_class TTOTAL_CMD
	WinWaitClose, ahk_class TTOTAL_CMD
	Run, c:\Totalcmd\Totalcmd.exe
}
:D
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You cannot avoid it completely, but you can minimize TC instead of closing it. From the help:

[Configuration]
MinimizeOnClose=0
Minimize main window instead of closing it.
Sum of:
1: when clicking on [X] button
2: On Alt+F4 keyboard shortcut
4: Click on function key button "Alt+F4 Exit"
Note: Shift key forces close
Author of Total Commander
https://www.ghisler.com
User avatar
Bluestar
Senior Member
Senior Member
Posts: 388
Joined: 2007-06-10, 15:26 UTC
Location: Hungary
Contact:

TotalConfirmExit utility

Post by *Bluestar »

Adding one the list - besides MVV's handy plugin you can use a tiny tool to achieve this task too. :)

You can download it by clicking here: TotalConfirmExit v1.0.0.1 (270 kB)

Features:
- no need to load/run it all the time - just run it once, restart TC and it works
- show a confirmation dialog when pressing Alt+F4 or Alt+X
- fully multilingual (supports the same languages as TC itself)
- portable (auto-installs itself to usercmd.ini & in case its placed to TC's main folder, it saves its current path using env.variables, relative to TC's path)

Command line switches:
/enablemenu - enable the Exit menu item in the title bar of TC
/showconfirm - show the confirmation dialog (exit:yes/no)
/noinstall - do not automatically install the utility to the usercmd.ini
/uninstall - remove the utility from the usercmd.ini & wincmd.ini

TODO:
- need to find a proper language string/combination of more, which matches even more for the current task (used item atm: 168 - any ideas?).
Last edited by Bluestar on 2013-10-21, 14:50 UTC, edited 4 times in total.
» Developer of Total Updater & extDir utility.
User avatar
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

Bluestar wrote:Adding one the list - besides MVV's handy plugin you can use a tiny tool to achieve this task too. :)
Very interesting. Can you please explain how it accomplishes the "exit confirmation"? Does it use a plugin?
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Post Reply