AutoHotkey: CopyNamesToClipWithoutExt

From TotalcmdWiki
Jump to navigation Jump to search
/*
Ctrl+Alt+Shift+C copies the filenames to the clipboard using the internal command cm_CopyNamesToClip,
then removes the extension parts from the clipboard.
*/
#IfWinActive, ahk_class TTOTAL_CMD
^!+c::                              ;*** Adjust hotkey when needed
Clipboard := ""
PostMessage, 1075, 2017
ClipWait, 1
Clipboard := RegExReplace(Clipboard, "(.+)\..+", "$1")
Return

Back to AutoHotkey