Page 1 of 1

[Resolved] cm_Copy Parameters

Posted: 2022-09-08, 13:04 UTC
by Galizza
Hi, now that many Tc commands allow parameters i want to suggest the
possibility to use parameters with cm_Copy, this will allow user to assign
shorcuts to different copy modes.

cm_Copy 1 - Ask user
cm_Copy 2 - Overwrite all
cm_Copy 3 - Skip all
cm_Copy 4 - Overwrite all older
cm_Copy 5 - Auto-rename copied
cm_Copy 6 - Auto-rename target files
cm_Copy 7 - Copy all larger files (overwrite smaller)
cm_Copy 8 - Copy all smaller files (overwrite larger)

Btw if anyone know how to achieve this with current Tc version and
Autohotkey, please let me know, thanks :!:

Re: cm_Copy Parameters

Posted: 2022-09-08, 16:47 UTC
by Fla$her
2Galizza
If the author had implemented my simple request, then I could offer an analogue with em_Copy [1-8].
But for some reason he does not understand how useful this supplement would be.

It would be solved as follows for em_Copy:
Command: %COMMANDER_PATH%\Utils\TCFS2\TCFS2.exe /ef "set_tcini(Configuration,ShowCopyOptions,1) tcm(905,1)
Parameters (x32): eval(select_wait(`%A`,findwnd(TMyComboBox,,findwnd(TMyGroupBox,,findwnd(TInpComboDlg))),1))"
Parameters (x64): eval(select_wait(`%A`,findwnd(LCLComboBox,,findwnd(Button,,findwnd(TInpComboDlg),0)),1))

Otherwise, you will have to duplicate the commands by specifying 1-8 instead of %A.

Another option would be if you create a command in TCFS2.ini in the Items section (to choose from two architectures):

Code: Select all

[Items]
; For TC x32:
tcopy=set_tcini(Configuration,ShowCopyOptions,1) tcm(905,1) eval(select_wait(`#1`,findwnd(TMyComboBox,,findwnd(TMyGroupBox,,findwnd(TInpComboDlg))),1))
; For TC x64:
tcopy=set_tcini(Configuration,ShowCopyOptions,1) tcm(905,1) eval(select_wait(`#1`,findwnd(LCLComboBox,,findwnd(Button,,findwnd(TInpComboDlg),0)),1))
And then execute from a button or a custom command:
%COMMANDER_PATH%\Utils\TCFS2\TCFS2.exe /ei tcopy([№])
%COMMANDER_PATH%\Utils\TCFS2\TCFS2.exe /ei tcopy(1)
—/—
%COMMANDER_PATH%\Utils\TCFS2\TCFS2.exe /ei tcopy(8)

Re: cm_Copy Parameters

Posted: 2022-09-08, 19:02 UTC
by Galizza
2Fla$her
 
Thank you very much, i think that let users customize Tc using em_commands
was a great Christian' decision but obviously could be improved, unfortunately
Tc doesn't have macro support so we must use external tools.
I have never used TCFS2 and my knowledge about Autohotkey is very basic
but after some search i found a way to deal with this missing Tc feature.

Code: Select all

PostMessage 1075, 3101, , , ahk_class TTOTAL_CMD
WinWaitActive, , Overwrite
Control, Choose, 2, TMyComboBox1
Choose, 2    will activate Overwrite all, for other options use
numbers from 1 to 8

Thanks again :!: :!:
 

Re: cm_Copy Parameters

Posted: 2022-09-08, 19:37 UTC
by Fla$her
Galizza wrote: 2022-09-08, 19:02 UTC I have never used TCFS2
It's worth a try. Save both space and time.
I gave the decision. It remains only to repeat the described. ;)

Re: cm_Copy Parameters

Posted: 2022-09-09, 03:04 UTC
by petermad
Hi, now that many Tc commands allow parameters i want to suggest the
possibility to use parameters with cm_Copy, this will allow user to assign
shorcuts to different copy modes.

cm_Copy 1 - Ask user
cm_Copy 2 - Overwrite all
cm_Copy 3 - Skip all
cm_Copy 4 - Overwrite all older
cm_Copy 5 - Auto-rename copied
cm_Copy 6 - Auto-rename target files
cm_Copy 7 - Copy all larger files (overwrite smaller)
cm_Copy 8 - Copy all smaller files (overwrite larger)
Support++

Re: cm_Copy Parameters

Posted: 2022-09-10, 19:34 UTC
by jinsight
Support++

Parameters with cm_Copy in order to assign shortcuts to different copy modes.

cm_Copy 1 - Ask user
cm_Copy 2 - Overwrite all
cm_Copy 3 - Skip all
cm_Copy 4 - Overwrite all older
cm_Copy 5 - Auto-rename copied
cm_Copy 6 - Auto-rename target files
cm_Copy 7 - Copy all larger files (overwrite smaller)
cm_Copy 8 - Copy all smaller files (overwrite larger)

This feature should be added to the built in copy functions; a plugin is a stop gap measure, imo.

Re: cm_Copy Parameters

Posted: 2022-09-10, 19:52 UTC
by Fla$her
jinsight wrote: 2022-09-10, 19:34 UTCa plugin is a stop gap measure, imo.
TCFS2 is a utility, not a plugin.

Re: cm_Copy Parameters

Posted: 2022-10-21, 16:46 UTC
by hi5
+1 would like to see this in TC 11