Find same file name both sides

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Help, I can't get this to work to select same file name in other panel too


Command: %Commander_Path%\plugins\TCFS2\TCFS2.exe
Parameters: /ef "tcm(2017) delay(2000) send(`{tab}`) tcm(2033)"

cm_CopyNamesToClip >> works
em_SwitchFilelist >> works
cm_LoadSelectionFromClip >> doesn't works, only if called from myself


My environment:
TC 8.51a on W7-64
TCFS2_2.2.0.444.zip
TCFS2Tools_1.4.3.188.zip (*)
Clipboard manager deactivated

Code: Select all

\plugins\TCFS2\TCFS2.exe	                    17.920	28.05.2014 11:50	-a--
\plugins\TCFS2\TCFS2.ini	                    15.224	11.11.2014 08:25	-a--
\plugins\TCFS2\TCFS2_2.2.0.444 Readme.txt	    29.891	11.11.2014 09:03	-a--

\plugins\TCFS2\TCFS2Tools.dll	                 8.704  04.05.2014 19:16	-a--
\plugins\TCFS2\TCFS2Tools_1.4.3.188 Readme.txt	16.341	21.03.2014 16:45	-a--


- - -

Also the example
/ei "sp_set_active(80)"
gives me only

---------------------------
Total Commander
---------------------------
Function not implemented!

65551
---------------------------
OK
---------------------------

and then

---------------------------
Total Commander
---------------------------
Function not implemented!

65562
---------------------------
OK
---------------------------


What do I wrong?


- - -
(*) FYI
If had downloaded the most recent TCFS2Tools 1.4.3.188 from
http://www.totalcmd.net/plugring/tcfs2tools.html
http://www.totalcmd.net/download.php?id=tcfs2tools
But it was downloaded as "TCFS2Tools_1.4.2.188.zip"
Whereas the Readme.txt stated > 2014-02-10 1.4.3.188
- - -

 
Last edited by Stefan2 on 2014-11-11, 09:22 UTC, edited 1 time in total.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7024
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Stefan2 wrote: - - -

Also the example
/ei "sp_set_active(80)"
gives me only

---------------------------
Total Commander
---------------------------
Function not implemented!

65551
---------------------------
OK
---------------------------

and then

---------------------------
Total Commander
---------------------------
Function not implemented!

65562
---------------------------
OK
---------------------------

What do I wrong?

- - -
You don't have the provided TCFS2.INI copied to the plugin dir.
Its in the EN subdir of the archive.
The missing functions and many others are defined in this file.
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Thanks for helping, but I had done this already (adding my post above now to mention this)


 
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

/ei "sp_set_active(80)"
This only works when TCFS2Tools is installed correctly (INI contains some comments). It isn't enough just to place it into TCFS2 folder.

Mentioned command works fine for me from buttonbar button. However you should keep in mind that TC shouldn't lose focus until end of waiting, perhaps delay time may be reduced.
But it was downloaded as "TCFS2Tools_1.4.2.188.zip"
Thanks, fixed.
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

register TCFS2Tools.dll as WDX plugin TCFS2.exe

Post by *Stefan2 »

MVV wrote:
/ei "sp_set_active(80)"
This only works when TCFS2Tools is installed correctly (INI contains some comments). It isn't enough just to place it into TCFS2 folder.
Thanks. I was confused and I should had read both readme.

I have noted down for me this modified instructions:
First way is to register TCFS2Tools.dll as WDX plugin

WINCMD.INI
[ContentPlugins]
xx=%Commander_Path%\plugins\TCFS2\TCFS2Tools.dll
xx_detect=

where xx is the next free number of ContentPlugins entries


and to define special 'color by file type' preset
(Configuration, Color, by file type, Add, Define, Plugins tab, "TCFSTools.Autorun > 0",
save with any name ( e.g. "TCFSToolsDummy"), apply all changes (color choosing can be cancelled))
to cause TC to load TCFS2Tools automatically.

(Maybe need to restart TC here?)

TEST
To test if this works try e.g. this command:
Command: %Commander_Path%\plugins\TCFS2\TCFS2.exe
Parameters: /ei "sp_set_active(80)"

- - -
MVV wrote:Mentioned command works fine for me from buttonbar button.
This works for me now on several tests:
Command: %Commander_Path%\plugins\TCFS2\TCFS2.exe
Parameters: /ef " tcm(2017) delay(100) send(`{tab}`) tcm(2033) tcm(2033)"

So I got the idea to improve your example to
Parameters: /ef " tcm(2017) delay(100) send(`{tab}`) delay(100) tcm(2033)"

Works. Fast. Elegant. Thanks.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Nice to hear that you've got fast and stable command!

You don't need to restart TC if you install TCFS2Tools via TC configuration dialog, but restart is required in case of installation via manual INI edition (just like in case of any other content plugin).
Post Reply