[BUG] Commandline parameter /P=L is ignored...

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

[BUG] Commandline parameter /P=L is ignored...

Post by *icfu »

...when /O is set and there is a running TC instance with focus set to right panel.

On the contrary /T always sets focus to left panel even in a running TC instance if /R is not used. This is rather confusing actually and very bad for (AHK) scripts.

Icfu
This account is for sale
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Re: [BUG] Commandline parameter /P=L is ignored...

Post by *Sheepdog »

icfu wrote:...when /O is set and there is a running TC instance with focus set to right panel.
confirmed.

Although it seems no bug as it is mentioned in the help that this parameter works at program start.

But I agree that it should work with "/O", too.

On the contrary /T always sets focus to left panel even in a running TC instance if /R is not used. This is rather confusing actually and very bad for (AHK) scripts.
Not Confirmed.

XP SP2 TC 6.53

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

On the contrary /T always sets focus to left panel even in a running TC instance if /R is not used.
Confirmed. XP SP2 TC 6.53
:!: What is the difference between our system, Partner?
I switched to Linux, bye and thanks for all the fish!
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

SanskritFritz wrote:
On the contrary /T always sets focus to left panel even in a running TC instance if /R is not used.
Confirmed. XP SP2 TC 6.53
:!: What is the difference between our system, Partner?
Oh sh*t, after changing the configuration with UTC Config the wrong TC-Version was restarted (accidentally).

So after all here confirmed, too.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

So, thanks for the confirmations.
All ghisler has to do then is to transform /T behaviour to /P, right? I hope we won't have to wait till TC 8 is released... ;)

Icfu
This account is for sale
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I'm sorry but I don't understand the /T problem. If for example I call TC with
TOTALCMD.exe /O /T /R=c:\test

Then the existing TC instance changes to c:\test on the right panel in a separate tab, and then activates this tab. Please explain what's wrong about that!
Author of Total Commander
https://www.ghisler.com
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

ghisler(Author) wrote:I'm sorry but I don't understand the /T problem. If for example I call TC with
TOTALCMD.exe /O /T /R=c:\test

Then the existing TC instance changes to c:\test on the right panel in a separate tab, and then activates this tab. Please explain what's wrong about that!
When using the /o parameter the currently active pane remains active.
Adding the /T parameter always the the right panel is set active.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, but when I use
TOTALCMD.exe /O /T /L=c:\co

Then the left pane becomes active, so not always the right panel is set active!
Author of Total Commander
https://www.ghisler.com
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

The problem is that strange inconsistency:

1. /T /R sets focus to right panel, /T /L sets focus to left panel.
2. If there is no /T, /R does NOT set focus to right panel and /L does NOT set focus to the left but instead you have to use /P but only if there is no running TC because with /O this doesn't work.

Is it logical to have two switches that are able to set focus? One standalone switch /P that you have to use when not creating tabs and one tabswitch /T that already includes focus setting?

Sorry, but this is confusing. Please remove focus setting from /T and stick to /P only and make /P also work for already running instances.

Or do I have to create an AutoHotkey-workaround?
If I want to activate the right panel of a running TC I have to create a tab on the right and then remove it by sending Ctrl-W? Yeah, that works too but honestly it sounds ridiculuos. ;)

Icfu
This account is for sale
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

I can confirm both bugs:
1. /T sets focus
2. /P=R /O doesn't work


2icfu
Or do I have to create an AutoHotkey-workaround?
This is blackmailing :mrgreen:
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

This is blackmailing
Call me Machiavelli if you like. ;)

Icfu
This account is for sale
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

icfu wrote:If I want to activate the right panel of a running TC I have to create a tab on the right and then remove it by sending Ctrl-W? Yeah, that works too but honestly it sounds ridiculuos. ;)
2icfu
This is the style the east german economy was working. ;)
I'm once again impressed how imaginative you are.

BTW for AHK one could use cm_focusleft or cm_focusright to set the focus - what you probably know but what may be of interest for some silent lurker here.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Post Reply