Wish: Confirm question on Exit of TC
Moderators: Hacker, petermad, Stefan2, white
TotalConfirmExit utility
@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.
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.
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.
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.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Right. It's always loaded.MVV wrote:My plugin works 100%. It simply subclasses window procedure and catches all close messages so there's no way to bypass it.
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.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
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 improveSir_SiLvA wrote:I dont think its hard to implement it its just an unneeded annoyance...wanderer wrote:I wonder though why is it so difficult to implement it in TC itself?
I personaly dont like Apps that upon clicking the X ask "are you sure you wanna do what you just clicked?".....

- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
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.Sir_SiLvA wrote:I dont think its hard to implement it its just an unneeded annoyance...wanderer wrote:I wonder though why is it so difficult to implement it in TC itself?
I personaly dont like Apps that upon clicking the X ask "are you sure you wanna do what you just clicked?".....