A couple of feature requests: FTP and duplicated buttons

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Albegor
Junior Member
Junior Member
Posts: 6
Joined: 2003-08-02, 15:42 UTC
Location: Como, Italy
Contact:

A couple of feature requests: FTP and duplicated buttons

Post by *Albegor »

Hi TC users,

I was going to post a couple of feature requests for the next version of TC, when I found one has already been posted:
FTP Transfer in Background Keyboard Hotkey

The other one is about the button bar: IMO it would be useful if the cm_GotoPreviousDir and cm_GotoNextDir commands could be duplicated for both the directory listings.
This could be useful also for other buttons to quickly access some of the most used functions.

Thanks to Christian Ghisler for such an excellent software and keep up the good work!
User avatar
franck8244
Power Member
Power Member
Posts: 704
Joined: 2003-03-06, 17:37 UTC
Location: Geneva...

Post by *franck8244 »

Have you tried the : cm_SyncChangeDir command ?
TC#88260 -
User avatar
Albegor
Junior Member
Junior Member
Posts: 6
Joined: 2003-08-02, 15:42 UTC
Location: Como, Italy
Contact:

Post by *Albegor »

franck8244 wrote:Have you tried the : cm_SyncChangeDir command ?
That's not what I meant since SyncChangeDir "mirrors" the changes made to a dir listing to the other one, while I proposed a back or forward command button that could act independently on one of the two dir listings.

Thanks anyway. :)
User avatar
franck8244
Power Member
Power Member
Posts: 704
Joined: 2003-03-06, 17:37 UTC
Location: Geneva...

Post by *franck8244 »

What you want can be easily be done with TCSript Editor:

GoBothToPrevious.tcs

Code: Select all

#include VKeys.h
postCmd(cm_GotoPreviousDir);// for current panel
SendVkey(VK_TAB,2);//switch panel
postCmd(cm_GotoPreviousDir);//for the other panel
SendVkey(VK_TAB,2);//switch panel
GoBothToNextDir.tcs

Code: Select all

#include VKeys.h
postCmd(cm_GotoNextDir);// for current panel
SendVkey(VK_TAB,2);//switch panel
postCmd(cm_GotoNextDir);//for the other panel
SendVkey(VK_TAB,2);//switch panel
TC#88260 -
User avatar
Albegor
Junior Member
Junior Member
Posts: 6
Joined: 2003-08-02, 15:42 UTC
Location: Como, Italy
Contact:

Post by *Albegor »

I have to learn more about the TCSript Editor, but that's very interesting, thanks!
However that script seems to act on both the dir listings, while I need one which can act on panel 1 and another one on panel 2 so that I can assign them to two different back (or forward) buttons.
Can the "postCmd(cm_GotoNextDir)" act on a specific panel or only on the currently active one?
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

2Albegor:

you can insert the commands 'cm_focusleft' and 'cm_focusright' to set the focus to the desired file panel before changing the directory. Add this to your TC Script:
left:

Code: Select all

postCmd(cm_focusleft); // activate left panel
postCmd(cm_GotoPreviousDir); // go back
right:

Code: Select all

postCmd(cm_focusright); // activate right panel
postCmd(cm_GotoPreviousDir); // go back
Using TC Script is quite easy, so you can acheive your goal within a few minues, i guess.
User avatar
franck8244
Power Member
Power Member
Posts: 704
Joined: 2003-03-06, 17:37 UTC
Location: Geneva...

Post by *franck8244 »

I made the scripts this way because :
it would be useful if the cm_GotoPreviousDir and cm_GotoNextDir commands could be duplicated for both the directory listings.
So I made the same change (cm_GotoPreviousDir or cm_GotoNextDir) in both panel without knowing wich one was activate but I returned to the activate one at the end, that's why there is 2 command : "SendVkey(VK_TAB,2);//switch panel "

Albegor is right for activate the "good" panel :D but I rarely need it...
TC#88260 -
User avatar
Albegor
Junior Member
Junior Member
Posts: 6
Joined: 2003-08-02, 15:42 UTC
Location: Como, Italy
Contact:

Post by *Albegor »

Thank you all for your prompt reply... need to learn more about TC Script as soon as I find the time. It seems very powerful! :)
Post Reply