Sync dirs enhancement

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

sa16
Senior Member
Senior Member
Posts: 215
Joined: 2021-09-10, 07:15 UTC

Re: Sync dirs enhancement

Post 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)"
Last edited by sa16 on 2023-03-29, 06:38 UTC, edited 1 time in total.
Fla$her
Power Member
Power Member
Posts: 2248
Joined: 2020-01-18, 04:03 UTC

Re: Sync dirs enhancement

Post 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. ;)
Overquoting is evil! 👎
sa16
Senior Member
Senior Member
Posts: 215
Joined: 2021-09-10, 07:15 UTC

Re: Sync dirs enhancement

Post by *sa16 »

*.* must also be called from a predefined filter.
User avatar
petermad
Power Member
Power Member
Posts: 14741
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Sync dirs enhancement

Post 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 ;-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
wanderer
Power Member
Power Member
Posts: 1575
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: Sync dirs enhancement

Post 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.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
Fla$her
Power Member
Power Member
Posts: 2248
Joined: 2020-01-18, 04:03 UTC

Re: Sync dirs enhancement

Post 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? :)
Overquoting is evil! 👎
sa16
Senior Member
Senior Member
Posts: 215
Joined: 2021-09-10, 07:15 UTC

Re: Sync dirs enhancement

Post 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).
Fla$her
Power Member
Power Member
Posts: 2248
Joined: 2020-01-18, 04:03 UTC

Re: Sync dirs enhancement

Post 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.
Overquoting is evil! 👎
User avatar
wanderer
Power Member
Power Member
Posts: 1575
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: Sync dirs enhancement

Post 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...
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
Fla$her
Power Member
Power Member
Posts: 2248
Joined: 2020-01-18, 04:03 UTC

Re: Sync dirs enhancement

Post 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.
Overquoting is evil! 👎
User avatar
wanderer
Power Member
Power Member
Posts: 1575
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: Sync dirs enhancement

Post 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... :)
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
wanderer
Power Member
Power Member
Posts: 1575
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: Sync dirs enhancement

Post 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... :(
Last edited by wanderer on 2023-03-24, 09:03 UTC, edited 1 time in total.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Sync dirs enhancement

Post 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.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
wanderer
Power Member
Power Member
Posts: 1575
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: Sync dirs enhancement

Post 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.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
sa16
Senior Member
Senior Member
Posts: 215
Joined: 2021-09-10, 07:15 UTC

Re: Sync dirs enhancement

Post 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.
Post Reply