Page 1 of 1

Command line parameter /P=S

Posted: 2022-10-11, 23:51 UTC
by petermad
Now we have the command line parameters /P=L and /P=R to set the active panel to left or right.

It could be nice with a parameter /P=S to set the active panel to the source side in case the command is run from TC

Re: Command line parameter /P=S

Posted: 2022-10-12, 04:22 UTC
by Fla$her
I fully support.

Re: Command line parameter /P=S

Posted: 2022-10-12, 08:04 UTC
by ghisler(Author)
Command line parameters are passed to the launched program. When you pass /P=S to the launched program, it will not know what was the source in the previous instance. It would mean that the caller would have to parse each command in various places where you can launch programs, and replace /P=S with /P=L or /P=R, respectively.

Re: Command line parameter /P=S

Posted: 2022-10-12, 11:01 UTC
by petermad
Hmm, how is the parameter /O treated? The current TC must read that before executing the command line, in order to know not to start a new instance.

So couldn't TC read /P=S and replace it with S with L or R before launching the command?

Re: Command line parameter /P=S

Posted: 2022-10-12, 11:25 UTC
by Fla$her
ghisler(Author) wrote: 2022-10-12, 08:04 UTCIt would mean that the caller
Not the caller. TC himself.

Re: Command line parameter /P=S

Posted: 2022-10-12, 11:39 UTC
by white
Another approach would be to implement a (pseudo) environment variable ACTIVE_PANEL and INACTIVE_PANEL with possible values L and R.

Re: Command line parameter /P=S

Posted: 2023-05-25, 13:15 UTC
by petermad
Bump*

It should be feasible when used from TC, and could just be ignored when used in a .lnk or .bat file.