AutoHotkey: Get the ftp address as hyperlink

From TotalcmdWiki
Revision as of 07:45, 3 October 2007 by SanskritFritz (talk | contribs) (wrong field used when reading the host name)
Jump to navigation Jump to search
; Ctrl-Shift-C (Total Commander FTP Details: Get the ftp address as hyperlink to the clipboard)
#IfWinActive FTP: connection details ahk_class TDETAILS
^+c::
   sTCFtpAddress := "ftp://"
   ControlGetText sTemp, TEdit6 ; User name
   sTCFtpAddress .= sTemp ":"
   ControlGetText sTemp, TEdit3 ; Password
   sTCFtpAddress .= sTemp "@"
   ControlGetText sTemp, TEdit7 ; Session
   sTCFtpAddress .= sTemp "/"
   ControlGetText sTemp, TEdit5 ; Remote Dir
   sTCFtpAddress .= sTemp
   Clipboard := sTCFtpAddress
   Return
#IfWinActive

Back to AutoHotkey