AutoHotkey: CopyNamesToClipWithoutExt: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
mNo edit summary
m (interwiki added)
Line 18: Line 18:
  Return
  Return


Back to [[AutoHotkey]]
{{translated|AutoHotkey: Kopiere Dateinamen ohne Erweiterung in die Zwischenablage|AutoHotkey}}

Revision as of 15:27, 14 January 2006

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