TCFS2 + TCFS2Tools: Full-screen mode for TC etc

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

Moderators: sheep, Hacker, Stefan2, white

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

Re: TCFS2 + TCFS2Tools: Full-screen mode for TC etc

Post by *MVV »

So how have you solved the problem? I haven't got it. :)
Another question, would you please tell me what exactly the binary strings tcfs2.exe will send by wm_copydata in this command :
Well, what TCFS2 sends for CD command, may be built like this:

Code: Select all

sprintf(buf, "%s%s\r%s%s\0%s", leftPath ? "\EF\BB\BF" : "", leftPath, rightPath ? "\EF\BB\BF" : "", rightPath, flags)
Where leftPathUtf8WithBom or rightPathUtf8WithBom is empty when no path is needed, or a path with BOM prefix.
So for your command TCFS2 sends this:

Code: Select all

ef bb bf 64 3a 5c 66 6f 6f 2e 7a 69 70 0d ef bb bf 41 00
Your problem is that you pass "A" as a right path, not as the flags. You should send this command like this instead:

Code: Select all

TCFS2 /ef "tcd(`d:\foo.zip`,,A)"
So TCFS2 will send this instead:

Code: Select all

ef bb bf 64 3a 5c 66 6f 6f 2e 7a 69 70 0d 00 41 00

User avatar
dindog
Senior Member
Senior Member
Posts: 275
Joined: 2010-10-18, 07:41 UTC

Re: TCFS2 + TCFS2Tools: Full-screen mode for TC etc

Post by *dindog »

MVV wrote:
2019-12-09, 06:23 UTC
So TCFS2 will send this instead:

Code: Select all

ef bb bf 64 3a 5c 66 6f 6f 2e 7a 69 70 0d 00 41 00
strange... I try sending ef bb bf 64 3a 5c 66 6f 6f 2e 7a 69 70 0d 00 41 00, TC still response randomly, sometimes it open the archive, sometime it doesn't.

MVV wrote:
2019-12-09, 06:23 UTC
So how have you solved the problem? I haven't got it. :)
I was testing in cmd console, and I can see TC, in background, show the menu, then close without response to the "d", and then a "d" can send to quick search input... Now I am calling tcfs2 in TC's button:
cmd: tcfs2.exe
param: /ef "tcm(3009,1) send(`d`) delay(50) tcm(4006,1) delay(20) tcm(3009,1) send(`d`) delay(50) tcm(4006,1)"
It works. First source panel tab right-menu show, and the "d" send, then switch to target panel, repeat the manueveur, then switch back to the original source panel, all action were done correctly
I reckon your TC didn't have the focus thinking is correct

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

Re: TCFS2 + TCFS2Tools: Full-screen mode for TC etc

Post by *MVV »

Yes, if you test from console, probably it could take focus. This is the reason why it is hard to debug send command problems. :)

Post Reply