Page 1 of 1

Access to full path of the file in lister

Posted: 2012-03-05, 13:28 UTC
by alexjak
Hi,

The full name of file opened currently in lister is visible in lister's window title, but there is no way to access it ... would be great to have a menu item to copy it to the clipboard or something.

It is possible to access just the file name by selecting "Save As" and then copying file name from the dialog box, but it is pretty awkward too, IMO.

Regards,

Alex

Posted: 2012-03-05, 14:02 UTC
by Horst.Epp
You can use Autohotkey for this.
The following example starts an editor but you can of course just copy the path into the clipboard:

;; F4 starts PSPad with current file in TCs lister
#IfWinActive ahk_class TLister
~F4::
WinGetTitle, title
left := InStr(title, "[")+1
right := InStr(title, "]")-left
StringMid, listerpath, title, left, right
WinClose, ahk_class TLister
Run, %ProgramFiles%\PSPad\PSPad.exe "%listerpath%"
Return
#IfWinActive