Talk:AutoHotkey: Paste TC's active path anywhere: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 21: Line 21:
  Send, %Path%
  Send, %Path%
  Return
  Return
Right, good idea. So it does work with the command line hidden?
SanskritFritz

Revision as of 08:16, 26 June 2006

Thanks, Hacker!

SanskritFritz

Another version without the fuss with the clipboard

#IfWinExist ahk_class TTOTAL_CMD
#a::
	ControlGetText sPath, TMyPanel2
	StringMid sPath, sPath, 1, StrLen(sPath) -1
	Send %sPath%\
	Return
#IfWinExist

Hacker 07:44, 24 Jun 2006 (EST):
Nice idea. I think it could also work like this:

#IfWinExist, ahk_class TTOTAL_CMD
$#a::
	ControlGetText, Path, TMyPanel2
	StringReplace, Path, Path, >, \
	Send, %Path%
Return

Right, good idea. So it does work with the command line hidden?

SanskritFritz