Reading folder names from active tabs using external app?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Aslan
New Member
New Member
Posts: 1
Joined: 2014-01-15, 13:55 UTC

Reading folder names from active tabs using external app?

Post by *Aslan »

Hi,

I do all my file op tasks using TC. My main goal to synchronize two folders by executing special application. It must read two active tabs and do the job.

Is it possible to read current folder names (full path) at both left and right tabs (active). How to get them via plugins? Is it possible to call TCMD api from external application to obtain such information?

Thanks
User avatar
solid
Power Member
Power Member
Posts: 749
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

You can call the external application from TC and send the folder paths as parameters using %P and %T placeholders. Check help file under topic "Dialog box: Change start menu" for other options.
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1049
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

You could also use SendMessage WM_COPYDATA from your application to get it.

See this thread for examples. Simpler than a plugin i guess.

From History.txt:
Send WM_COPYDATA with dwData='G'+256*'A' and lpData pointing to command to get back WM_COPYDATA with various info.
Supported commands A: Active side (returns L or R), or two byte command: first byte: L=left, R=right, S=source, T=target.
Second byte: P=current path, C=list count, I=caret index, N=name of file under caret. dwData of return is 'R'+256*'A' (32/64)
Post Reply