Save on exit: position

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
compie
Junior Member
Junior Member
Posts: 93
Joined: 2003-07-06, 18:47 UTC

Save on exit: position

Post by *compie »

I can't find this setting in the configuration panel. Is there an ini file setting for this?
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Menu ?

Post by *Clo »

2compie

:) Hello !

• What about Configuration Menu >> Save position ?
cm_configSavepos is the command to use elsewhere if you wish…

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
compie
Junior Member
Junior Member
Posts: 93
Joined: 2003-07-06, 18:47 UTC

Post by *compie »

I want to save the position automatically on exit.
User avatar
Sombra
Power Member
Power Member
Posts: 814
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

Try to make a button in the toolbar or an em_command with the tool TCMC
  • Command: <path to the tool>TCMC.exe
    Parameters: CMcm_configSavepos CMcm_Exit
I can read English, but... I write like Tarzan. (sorry)
compie
Junior Member
Junior Member
Posts: 93
Joined: 2003-07-06, 18:47 UTC

Post by *compie »

That only works when I exit total commander via that special exit button. That's not a good solution.

All suggestions here a just workarounds for the real problem: we don't have

SavePosition=1 Save window position when closing Total Commander


in the ini file. We do have:

SaveCommands=1 Save command lines when closing Total Commander (1/0)
Savepath=1 Save current paths when closing Total Commander (1/0)
Savepanels=1 Save settings when closing Total Commander (1/0)

I will submit a feature request for TC7 to implement this.
compie
Junior Member
Junior Member
Posts: 93
Joined: 2003-07-06, 18:47 UTC

Post by *compie »

Here is the feature request for TC7 (including a poll):
http://ghisler.ch/board/viewtopic.php?t=13897
Max Born
Junior Member
Junior Member
Posts: 13
Joined: 2007-11-16, 18:48 UTC

Post by *Max Born »

I think this is the most Important feature that TC is now lacking of.
I meant, why would TC behave differently of any other windows program?
And even worst, why should the non-windw0s-standard be the ONLY possible behavior of TC?
I respect all you who doesn´t want the windows position and size automatically remembered, but why do not include the OPTION to change that behaviors, that would be....well, OPTIONal.
I see no reason at all, that will justify the no-inclusion of the typical windows behavior, as an option in TC.
If you do not need it, alright, but do not take from us, the ones who need it, the chance to have it.
So, if the answer is no, do not vote. You will only be destructive. Nothing is going to change for you that do not want to use that ability of TC remembering position and size.
I repeat, the question here is: should TC include the ability of behave as any other windows program, as an option (the default behavior will be the same as now)?
I just want someone to give-me a valid reason against it.
Concluding, I vote YES.
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

2Max Born
Out of my own experience, Windows sucks at remembering size and position.
TC for Linux please!
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

roentgen wrote:Out of my own experience, Windows sucks at remembering size and position.
Though this may be true, it will not affect T.C. in this case:

It will be T.C. itself which determines the display co-ordinates and which saves them before exiting, just like it does when you select Configuration => Save position (internal command cm_configSavepos). Only with the suggested new option SavePosition=1 T.C. would execute cm_configSavepos automatically before exiting.

Those who do not like this behaviour will switch off the option SavePosition, and everybody will be happy.

Kind regards,
Karl
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

2karlchen
What Max Born asked was to let Windows handle the size and position of TC as with explorer (or many others). This indeed sucks.

As for the rest, I really don't care. I settle for a size and position, save it, end of story. TC is not a WinAMP-like toy, and besides that, I think people have problems with drag&drop and Alt+Tab if they need to endlessly resize *any* window.
TC for Linux please!
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, roentgen.

Looks as if we interpreted Max Born's post differently: I thought he were supporting compie's request to add an option SavePosition to T.C.

This option if set to 1 would make T.C. perform a cm_configSavepos automatically before exiting. As T.C. will restore its window to the last saved position on startup, this way T.C. would automatically restore to the previous position and size.

Kind regards,
Karl
Last edited by karlchen on 2007-11-18, 08:58 UTC, edited 1 time in total.
wolf.b
Junior Member
Junior Member
Posts: 45
Joined: 2006-01-26, 05:38 UTC

Post by *wolf.b »

I am not sure if this is true in all cases:

Windows OS does not handle the task of saving and restoring the position where programs appear on screen. It is eighther the code of the program itself, that enables such a behaviour, or some tool in the background that observes (hooks) calls to "ShowWindow, Normal", and any calls that don't include info where to put the program's window, (let Windows OS decide where to put it) will be handled.

I am not a programmer, so my terminology is faulty, but I still don't think that Windows OS supports the "save position" feature. So it can not be asked to do it. It is up to the program to do it. That might be what "Windows Explorer" (explorer.exe) is doing, not the Windows Operating System.

Please kick me and correct me, in case I am wrong. Looking forward to learn.

[Edit: I support the request to include this as optional. Default behaviour does not really matters to me, but I personally would stick to the current behavior.]


Greetings
Wolf
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Please kick me and correct me, in case I am wrong. Looking forward to learn.
You are correct. There is no API which would tell Windows to add a program to a magical "remember size" list, which was administrated by the OS.

Icfu
This account is for sale
Max Born
Junior Member
Junior Member
Posts: 13
Joined: 2007-11-16, 18:48 UTC

Post by *Max Born »

People, excuse me if was inaccurate previously and made a mess. I know that Windows OS have nothing to do with saving or remembering a program position and size, that is a task that the application himself has to carry out. What I was saying is that TC should (himself) be able to auto-save its size and position when exiting. This behavior shouldn’t be mandatory but I think it should be included as an option.
Most windows programs has that behavior. If you resize them ant then close them. The next time you open that program, it will have the last position and size.
I can’t remember how many times I have resided TC, thinking it will remains that way. To later discover that it has goes back to its last manual-saved position. That’s not what you expect from a windows program that adhere to the common behavior of programs in windows.
I think many people will really appreciate the possibility (given as an option) of making TC auto-save and load its position and size when exiting. That’s all.
Post Reply