AutoHotkey: Move selected files to parent directory: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 3: Line 3:
  IfWinActive, ahk_class TTOTAL_CMD
  IfWinActive, ahk_class TTOTAL_CMD
  {
  {
!^F6::
!^F6::
ControlGetText, ParentPath, TMyPanel3
ControlGetText, ParentPath, TMyPanel3
Clipboard := RegExReplace(ParentPath, "(^.+\\).+", "$1")
Clipboard := RegExReplace(ParentPath, "(^.+\\).+", "$1")
Send {F6}
Send {F6}
Send ^v{Enter 2}
Send ^v{Enter 2}
Return
Return
  }
  }
  Return
  Return


[[Category:AutoHotkey scripts|Move selected files to parent directory]]
[[Category:AutoHotkey scripts|Move selected files to parent directory]]

Latest revision as of 16:16, 18 June 2009

You can use this script to move the selected files to its parent directory without changing the target panel or using the mouse. The shortkey is Ctrl-Alt-F6:

IfWinActive, ahk_class TTOTAL_CMD
{
	!^F6::
	ControlGetText, ParentPath, TMyPanel3
	Clipboard := RegExReplace(ParentPath, "(^.+\\).+", "$1")
	Send {F6}
	Send ^v{Enter 2}
	Return
}
Return