Page 4 of 4

Re: Sync dirs enhancement

Posted: 2023-03-25, 18:56 UTC
by Fla$her
2wanderer
You didn't answer the first question.
And with regard to the above button, a comment would also not hurt.

Re: Sync dirs enhancement

Posted: 2023-03-25, 19:33 UTC
by wanderer
Fla$her wrote: 2023-03-25, 18:56 UTCYou didn't answer the first question.
I thought it was clear. I added a button from TC's UI, copied your command in TC's field and then i tried to change the path to what i posted. It just stopped 1 char short because of TC's char limit in that field. That's all. After that i dumped this solution and followed Horst.Epp's suggestion which i liked.
Fla$her wrote: 2023-03-25, 18:56 UTCAnd with regard to the above button, a comment would also not hurt.
https://www.ghisler.ch/board/viewtopic.php?p=428540#p428540

I thought it was obvious in this post, i implemented it so i've ended up using it. Works fine, does wat i asked for so... Yeah! :) Thanks for it. :thumbsup:

Re: Sync dirs enhancement

Posted: 2023-03-25, 21:09 UTC
by Fla$her
wanderer wrote: 2023-03-25, 19:33 UTCI thought it was clear.
Unclear. I have provided the button codes to insert them into the toolbar immediately. In the first code, there are 139 characters in the first field, so there is nowhere to trigger the restriction after adding a couple of characters.
wanderer wrote: 2023-03-25, 19:33 UTCI thought it was obvious in this post, i implemented it so i've ended up using it.
If it were obvious, then I would not have offered a more competent way out of the situation. A strange conclusion.

Re: Sync dirs enhancement

Posted: 2023-03-26, 09:30 UTC
by sa16
2wanderer
There is also a way to write a command (including a very long one) to the [Items] section of the TCFS2.ini, for example, like this:

Code: Select all

SyncMysetting = tcm(2020,1) eval(send_wait(,findwnd(TCmpForm))) sendmsg(if(#1==64, findwnd(LCLComboBox,,findwnd(Window,,findwnd(TCmpForm),1)), findwnd(TMyComboBox,,findwnd(TPanel,,findwnd(TCmpForm)))),334,1)
then call in the TC:

Code: Select all

%COMMANDER_PATH%\Addons\TCFS2\TCFS2.exe /ei "SyncMysetting(%PROCESSOR_ARCHITECTURE:~-2%)"

Re: Sync dirs enhancement

Posted: 2023-03-26, 16:29 UTC
by wanderer
Fla$her wrote: 2023-03-25, 21:09 UTC
wanderer wrote: 2023-03-25, 19:33 UTCI thought it was clear.
Unclear. I have provided the button codes to insert them into the toolbar immediately. In the first code, there are 139 characters in the first field, so there is nowhere to trigger the restriction after adding a couple of characters.
Well, you have provided a working solution. How the user will choose to implement this solution (since there are multiple ways) is up to him. You thought the natural way for me would be to copy/paste the solution to the .bar file, to me was to insert it through the UI and adjust the path to something that's convenient to me, hence the misunderstanding. :) Hopefully it's clear now.
Fla$her wrote: 2023-03-25, 21:09 UTC
wanderer wrote: 2023-03-25, 19:33 UTCI thought it was obvious in this post, i implemented it so i've ended up using it.
If it were obvious, then I would not have offered a more competent way out of the situation. A strange conclusion.
As with my reply above, it all depends on how the solution is implemented. Anyway, as i said, followed Horst.Epp's suggestion and used an external command, so all's good,

Re: Sync dirs enhancement

Posted: 2023-03-28, 05:19 UTC
by sa16
Way with sending keystrokes:

Code: Select all

%COMMANDER_PATH%\Addons\TCFS2\TCFS2.exe /ef "tcm(2020,1) eval(send_wait(`+{TAB 4}{RIGHT}{DOWN 2}{TAB}{RIGHT}{TAB 2}`,findwnd(TCmpForm)))"

Re: Sync dirs enhancement

Posted: 2023-03-28, 12:53 UTC
by Fla$her
sa16 wrote: 2023-03-28, 05:19 UTCWay with sending keystrokes:
It's not a competition for the shortest line. :D By itself, the keystrokes approach is obviously slower and more unreliable.