AutoHotkey: CopyNamesToClipWithoutExt

From TotalcmdWiki
Revision as of 14:19, 14 January 2006 by Hacker (talk | contribs)
Jump to navigation Jump to search

This script copies the filenames to the clipboard using the internal command cm_CopyNamesToClip, then removes the extension parts from the clipboard.

; Activates with Ctrl-Alt-Shift-C
$^!+c::
IfWinActive, ahk_class TTOTAL_CMD
{
	PostMessage, 1075, 2017
	Loop, Parse, Clipboard, `n, `r
	{
		StringGetPos, DotPos, A_LoopField, ., R
		StringLeft, TempString, A_LoopField, %DotPos%
		TempClip = %TempClip%%TempString%`r`n
	}
	Clipboard = %TempClip%
	Return
}
Send, ^!+c
Return

Back to AutoHotkey