Page 2 of 4

Re: Sync dirs enhancement

Posted: 2023-03-23, 17:39 UTC
by sa16
Fla$her wrote: Give me the dialog classes

Code: Select all

%COMMANDER_PATH%\Addons\TCFS2\TCFS2.exe /ef "tcm(2020,1) eval(send_wait(,findwnd(TCmpForm))) sendmsg(findwnd(TMyComboBox,,findwnd(TPanel,,findwnd(TCmpForm))),334,1) sendmsg(findwnd(LCLComboBox,,findwnd(Window,,findwnd(TCmpForm),1)),334,1)"

Re: Sync dirs enhancement

Posted: 2023-03-23, 17:46 UTC
by Fla$her
2petermad
Firstly, we don't call them scripts, they are commands. And in order for you to be understood correctly, you should have written "some published button/command codes", then there would be no questions. ;)

Re: Sync dirs enhancement

Posted: 2023-03-23, 17:50 UTC
by sa16
*.* must also be called from a predefined filter.

Re: Sync dirs enhancement

Posted: 2023-03-23, 18:03 UTC
by petermad
Firstly, we don't call them scripts, they are commands
OK - I stand corrected - and here I thought that a sequence of commands carried out by an interpreter constituted a script - silly me ;-)

Re: Sync dirs enhancement

Posted: 2023-03-23, 18:11 UTC
by wanderer
sa16 wrote: 2023-03-23, 16:24 UTC
wanderer wrote: 1x button, defined a search filter
Predefined filter, no wildcards?
Once again, to be clear, the request is: If the "Sync Dirs" window is open, when it is being closed, store (in memory) whatever is selected as a search filter (wildcards or saved searches) and restore the selection when it is reopened (perhaps according to whether a specific (new) setting in the INI file is set to "true", for those who like the current behavior). Since this value should be stored in memory, this would be done for the current TC session (so the selection is lost when TC is closed).

I'm also adding the above to the original post as a clarification for what i've requested.

Re: Sync dirs enhancement

Posted: 2023-03-23, 18:57 UTC
by Fla$her
petermad wrote: 2023-03-23, 18:03 UTC OK - I stand corrected - and here I thought that a sequence of commands carried out by an interpreter constituted a script - silly me ;-)
TCFS2 is a command-line utility. It's logical, including for unification purposes, to term a string with parameters a command, especially since it can represent something quite simple, like '/ei fs'.

If the above receipt of the handle is correct, then the universal button will be like this:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Addons\TCFS2\TCFS2.exe /ef "tcm(2020,1) eval(send_wait(,findwnd(TCmpForm))) if(%PROCESSOR_ARCHITECTURE:~-2%==64,varset(1,
findwnd(LCLComboBox,,findwnd(Window,,findwnd(TCmpForm),1))),varset(1,findwnd(TMyComboBox,,findwnd(TPanel,,findwnd(TCmpForm))))) sendmsg(varget(1),334,1)"
WCMICON2.DLL,48
Synchronize directories with the latest wildcards
2wanderer
We don't see your reaction to the solution. First of all, you need it. Or are you ready to wait for a decision from Christian until death? :)

Re: Sync dirs enhancement

Posted: 2023-03-23, 20:40 UTC
by sa16
It is possible with PROCESSOR_ARCHITECTURE, but without Varset and Varget:

Code: Select all

%COMMANDER_PATH%\Addons\TCFS2\TCFS2.exe /ef "tcm(2020,1)eval(send_wait(,findwnd(TCmpForm)))sendmsg(if(%PROCESSOR_ARCHITECTURE:~-2%==64,findwnd(LCLComboBox,,findwnd(Window,,findwnd(TCmpForm),1)),findwnd(TMyComboBox,,findwnd(TPanel,,findwnd(TCmpForm)))),334,1)"
Without PROCESSOR_ARCHITECTURE, it also seems to work (see my message above).

Re: Sync dirs enhancement

Posted: 2023-03-23, 21:28 UTC
by Fla$her
sa16 wrote: 2023-03-23, 20:40 UTCbut without Varset and Varget:
Good idea. It possible to write without quotation marks.
sa16 wrote: 2023-03-23, 20:40 UTCWithout PROCESSOR_ARCHITECTURE, it also seems to work (see my message above).
There's an extra call.

Re: Sync dirs enhancement

Posted: 2023-03-24, 06:16 UTC
by wanderer
Fla$her wrote: 2023-03-23, 18:57 UTC2wanderer
We don't see your reaction to the solution. First of all, you need it. Or are you ready to wait for a decision from Christian until death? :)
Well, i do appreciate your solution and everybody's trouble trying to enhance it and thank you all for it, but for such a simple thing, downloading yet another addon which will serve this single small purpose and may be abandoned in a few years... To be truthful, i've grown a little tired of the concept of doing the tiniest things that way. I'm guess i'll be waiting for a while to see if Christian comments about this and if it seems it may not be implemented in the foreseeable future, there will always be this nice solution here...

Re: Sync dirs enhancement

Posted: 2023-03-24, 08:00 UTC
by Fla$her
2wanderer
By reaction we mean the test result.

You are wasting your time in your expectations. The problem is that there are enough small (including not at all specific) requests in the section, and the author rarely responds to them. But many of the small requests cannot be beautifully solved by additional means in the context of the current interface, so sometimes it's better to be happy that there is a quality analogue than to wait for many years by the sea for weather.
Answer, which is worse — your fatigue from constantly choosing an item in the drop-down list or "fatigue" from the idea of solving minor problems in this way? In my opinion, the answer is obvious. ;)
If I hadn't figured out how to bypass unnecessary routine manipulations in one press, I would have gone crazy long ago. :shock: And I have hundreds of them.

Re: Sync dirs enhancement

Posted: 2023-03-24, 08:37 UTC
by wanderer
Fla$her wrote: 2023-03-24, 08:00 UTCAnswer, which is worse — your fatigue from constantly choosing an item in the drop-down list or "fatigue" from the idea of solving minor problems in this way?
Well, be sure that if this issue was more serious and annoying, i would immediately implement your solution and not have a second thought about it. :) It's just that this is a small thing that seems to require minimal work to be included in TC, that's why i prefer to wait rather than adding another addon to my installation.

Meanwhile, all this talk about TCFS intrigued me, so i'll take a look at it anyway... :)

Re: Sync dirs enhancement

Posted: 2023-03-24, 09:00 UTC
by wanderer
wanderer wrote: 2023-03-24, 08:37 UTCMeanwhile, all this talk about TCFS intrigued me, so i'll take a look at it anyway... :)
2Fla$her
Well, i eventually tried it out and it seems to work just fine. The only problem i faced is that my path is slightly different so when i tried to change it, i bumped on TC's "Command" field max char limit! :) Anyway, i created a batch file which i run minimized, so everything is OK.

I guess TCFS2 is rather generic, so it may be useful for other things too in the future. Thanks for everything.

EDIT:
Correction: it works for everything except *.* which is always the 1st in the list. So, that means that 2 buttons are needed... :(

Re: Sync dirs enhancement

Posted: 2023-03-24, 09:02 UTC
by Horst.Epp
wanderer wrote: 2023-03-24, 09:00 UTC
wanderer wrote: 2023-03-24, 08:37 UTCMeanwhile, all this talk about TCFS intrigued me, so i'll take a look at it anyway... :)
Well, i eventually tried it out and it seems to work just fine. The only problem i faced is that my path is slightly different so when i tried to change it, i bumped on TC's "Command" field max char limit! :) Anyway, i created a batch file which i run minimized, so everything is OK.

I guess TCFS2 is rather generic, so it may be useful for other things too in the future. Thanks for everything.
I guess using an em_ command will also work without the need for running a batch file.

Re: Sync dirs enhancement

Posted: 2023-03-24, 09:04 UTC
by wanderer
Horst.Epp wrote: 2023-03-24, 09:02 UTCI guess using an em_ command will also work without the need for running a batch file.
Nice! Thanks, i'll try it.

Re: Sync dirs enhancement

Posted: 2023-03-24, 09:16 UTC
by sa16
2wanderer
Correction: it works for everything except *.* which is always the 1st in the list.
I wrote:
*.* must also be called from a predefined filter.
For *.* create, for example, a filter ! _ All.