Code: Select all
; Copy the full name of a file from a TC file system plugin to the clipboard.
; In contrast to TC's built-in cm_CopyFullNamesToClip, this script omitts the
; leading name of the file system.
; Language: AutoHotkey <http://www.autohotkey.com/>
if 0 != 1 ; if there is not exactly 1 command-line parameter
{
MsgBox, This program must be called from within TC with parameter `%P`%N
ExitApp
}
FsFilename = %1%
StringTrimLeft, Clipboard, FsFilename, Instr(FsFilename, "\", true, 4)
Regards, Juergen
[edit]
After some "research" about %P and %N, the script was simplified a little. I also changed the description, so that now the difference to TC's built-in command cm_CopyFullNamesToClip becomes clearer.
[/edit]