@ MVV, I have a solution, but its a script... so you prolly wont like it
AHK Script, Activated by WIN+O
(easy to change)
Requires you have a Custom Column named
RP_Target (easy to change)
that contains as its first column:
[=ntlinks.RP_Target]
Code: Select all
CheckTCRedirect( iniSection )
{
wincmd = %COMMANDER_INI%
iniRead, iniRedirect, %wincmd%, %iniSection%, RedirectSection, %wincmd%
SplitPath, iniRedirect, iniFile, iniPath
if( !iniPath )
SplitPath, wincmd, tmpFile, iniPath
return iniPath . "\" . iniFile
}
iniReadTC( iniSection, iniKey )
{
iniFile := CheckTCRedirect( iniSection )
IniRead, keyValue, %iniFile%, %iniSection%, %iniKey%, %A_Space%
return keyValue
}
#o::
{
ifWinActive, ahk_class TTOTAL_CMD
{
customColumnNames := iniReadTC( "CustomFields", "Titles" )
if( InStr(customColumnNames, "RP_Target") )
{
StringSplit, ccArray, customColumnNames, |
Loop, %ccArray0%
{
if( ccArray%A_Index% == "RP_Target" )
{
dx := A_Index
break
}
}
}
else
{
MsgBox, Requires a Custom Column named: RP_Target,`nThat has: [=ntlinks.RP_Target] as the first column
return
}
WinGet, aApp
MouseGetPos, ,,,aControl
lParam := 0x1587 ; Right Panel
if( aControl == "TMyListBox2" )
lParam := 0x1586 ; Left Panel
SendMessage, 0x433, %lParam%, %dx%,,ahk_id %aApp%
SendMessage, 0x433, 0x7F4 ; cm_CopyFileDetailsToClip
SendMessage, 0x433, 0x12E ; cm_SrcLong (Details)
StringSplit, rpTarget, Clipboard, %A_Tab%
Clipboard := rpTarget2
ClipWait, 1
MsgBox, %Clipboard%
}
}
return
It's pretty specific atm, but easy enough to break it into a function that can query for any CustomColumn.