shortcut on Synchronize Directories

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
jmwap
Member
Member
Posts: 121
Joined: 2008-03-23, 12:40 UTC

shortcut on Synchronize Directories

Post by *jmwap »

hi,

In TC8.52, I use Synchronize Directories very often. Many times I need to check diffs in lots of files. It would be great if I could get Return key to do the same as C-F3 or double-click, that is, compare Left/Right files.

But I could not find any way, do you guys know of something?

thanks.
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Assign a keyboard shortcut to a TC internal command:

Post by *Stefan2 »

Synchronize Directories:

c:\totalcmd\TOTALCMD.INC
[________________Tools________________]=0
cm_FileSync=2020;Synchronize directories



How to find and use TCs' internal command
How to use a TC internal command
Assign a keyboard shortcut to that command:
>>> http://ghisler.ch/board/viewtopic.php?p=289931#289931




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

Post by *MVV »

Stefan2,
He wants a shortcut for comparing left and right files in Sync dialog (default is Ctrl+F3 and can't be changed, also mouse double-click does the same), not for opening Sync dialog.
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Oh, really? ...... ........ Yeah, you're right. Sorry for useless noise, I got that wrong.







 
jmwap
Member
Member
Posts: 121
Joined: 2008-03-23, 12:40 UTC

Post by *jmwap »

thanks Stefan2 and MVV for at least trying.

I finally got a ahk script working, in case somebody finds it useful:

Code: Select all

#IfWinActive, ahk_class TCmpForm
    Enter::  
        ;only do it when focus is on the file list (not on buttons for instance
        ControlGetFocus, OutputVar, A
        ;if ErrorLevel
            ;MsgBox, The target window doesn't exist or none of its controls has input focus.
        ;else
        ;    MsgBox, Control with focus = %OutputVar%
        if ("TBkGndListBox1" = OutputVar)
        {
            Send ^{F3}
        }
        else
        {
            Send {Enter}
        }
    Return
#IfWinActive
Post Reply