AutoHotkey: CopyNamesToClipWithoutExt: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 9: | Line 9: | ||
{ | { | ||
StringGetPos, DotPos, A_LoopField, ., R | StringGetPos, DotPos, A_LoopField, ., R | ||
StringLeft, TempString, A_LoopField, DotPos | StringLeft, TempString, A_LoopField, %DotPos% | ||
TempClip = %TempClip%%TempString%`r`n | TempClip = %TempClip%%TempString%`r`n | ||
} | } |
Revision as of 14:19, 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