Button Config Puzzle

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Jaguarist
Junior Member
Junior Member
Posts: 68
Joined: 2003-08-24, 10:59 UTC
Location: Central USA

Button Config Puzzle

Post by *Jaguarist »

Well, here's another situation that I cannot seem to figure out.

I have made a toolbar button, the function of which I want to have TC's directory displayed in the Right lister window.

On the command line of the button configuration, I have this:

cd /R=C:\Program Files\wincmd

I have set the start path as

C:\Program Files\wincmd


OK, so here's my quandry........

If I have focus on the left lister window, the button does exactly as I wish it to do, that is, brings the TC directory to the Right lister window.

However.... If I have the focus on the Right lister window, then select my button, the TC directory goes to the Left lister window.


From what I understand in the Help file, the /R= should tell TC to always display the CD command in the Right lister window, correct??


So, what am I doing wrong here? I'm stumped on this one.

Thanks,
Jag
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 18-01-2004 16:28:55 +0000 Jaguarist wrote:

J> I have made a toolbar button, the function of which I want
J> to have TC's directory displayed in the Right lister window.


What the hack is "Right lister window"? Did you meant "the right panel"? Read this.[/face]
User avatar
Jaguarist
Junior Member
Junior Member
Posts: 68
Joined: 2003-08-24, 10:59 UTC
Location: Central USA

Post by *Jaguarist »

Black Dog wrote:[face=courier]On 18-01-2004 16:28:55 +0000 Jaguarist wrote:



What the hack is "Right lister window"? Did you meant "the right panel"?



Yes, that is what I meant. But you knew that already, didn't you? But, once again, you have impressed me with your superior knowledge, terminology, and ability to be affable. :idea:


Thank you for the solution.

Jag
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2Jaguarist
If you want to change directory and set focus to desired panel at once - you can use TCScript (it allows to use several commands in one button), eg.:

Code: Select all

Exec("D:\totalcmd\totalcmd.exe", "/O /R=C:\Program Files\wincmd");
PostCmd(cm_focusright);
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Jaguarist
Junior Member
Junior Member
Posts: 68
Joined: 2003-08-24, 10:59 UTC
Location: Central USA

Post by *Jaguarist »

2djk

I have been reading about that program in several threads on the board here. I believe I shall download it, and read and study about how to use it.

Thanks!! :)

Jag
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 18-01-2004 17:30:36 +0000 Jaguarist wrote:

J> But you knew that already, didn't you?

I presumed it, but it was not so easy %).

J> But, once again, you have impressed me

Your impressions are not my business, actually.

J> Thank you for the solution.

Be my guest.[/face]
Post Reply