Wish: Confirm question on Exit of TC

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

User avatar
Bluestar
Senior Member
Senior Member
Posts: 388
Joined: 2007-06-10, 15:26 UTC
Location: Hungary
Contact:

TotalConfirmExit utility

Post by *Bluestar »

@wanderer:

No, TotalConfirmExit doesn't uses any plugins at all - it simply performs a WinAPI call to show a MessageBox after loading the appropriate language string(s) from the currently used "WCMD_*.LNG" file, and sends a close message (cm_Exit) to TC in case the user chooses "Yes" inside that modal dialog.

TC's internal "Redefine hotkey" feature is being used for the app to be called: it auto-registrates itself in "usercmd.ini" & "wincmd.ini" for the keys Alt+X and Alt+F4, so no other user interaction is needed.
Last edited by Bluestar on 2013-10-21, 14:46 UTC, edited 1 time 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 »

Nice. Thanks for the info. It seems pretty decent, so i'll try it.
- 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
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

Since a specific post for TotalConfirmExit does not seem to exist in the plugins forum, i'll post a peculiarity of the utility here. When exiting and re-loading TC, TC's "X" (close window) button is re-enabled. If you press ALT+F4 once and the utility is executed then it disables that button. So it's not 100% safe...

Note (mainly to Christian): Perhaps TC could help a little here. If it's difficult to add the functionality directly to TC, perhaps an "ConfirmationEXEToBeExecutedWhenTCExits" ini entry can be added so when TC is to be closed (by any means), the confirmation EXE could be executed by TC itself.
- 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 »

My plugin works 100%. It simply subclasses window procedure and catches all close messages so there's no way to bypass it. :)
User avatar
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

MVV wrote:My plugin works 100%. It simply subclasses window procedure and catches all close messages so there's no way to bypass it. :)
Right. It's always loaded.

I wonder though why is it so difficult to implement it in TC itself? I got the impression that when this issue was first discussed, the problem was bad timing. A new version of TC was near release and there was no time to add a confirmation string and alert the translators.

Christian, any comments???
- 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
Sir_SiLvA
Power Member
Power Member
Posts: 3381
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

wanderer wrote:I wonder though why is it so difficult to implement it in TC itself?
I dont think its hard to implement it its just an unneeded annoyance...
I personaly dont like Apps that upon clicking the X ask "are you sure you wanna do what you just clicked?".....
User avatar
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

Sir_SiLvA wrote:
wanderer wrote:I wonder though why is it so difficult to implement it in TC itself?
I dont think its hard to implement it its just an unneeded annoyance...
I personaly dont like Apps that upon clicking the X ask "are you sure you wanna do what you just clicked?".....
IMO the best solution would be for Christian to provide a ConfirmOnClose INI setting which would have the same values as MinimizeOnClose. That way the user would be able to configure TC as he sees fit. All i know is that I have pressed ALT+F4 instead of ALT + F3 too many times so far and as i'm getting older, things don't seem to improve :|.
- 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 »

Sir_SiLvA wrote:
wanderer wrote:I wonder though why is it so difficult to implement it in TC itself?
I dont think its hard to implement it its just an unneeded annoyance...
I personaly dont like Apps that upon clicking the X ask "are you sure you wanna do what you just clicked?".....
We are suggesting this feature as an option! You could go into Options and uncheck the "Ask before closing" and you would not see the confirmation window, ever. I on the other hand would have it checked and get the confirmation window. So how can that be an annoyance? It's really not.
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

"Confirm exit" warning can be helpful in case if we have any of Commander's children windows, like file properties dialog, Lister or Find Files in separate mode also opened.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Especially when one of those properties windows is applying attributes to a lot of files... and closing TC will stop operation w/o confirmations.
Post Reply