AutoHotkey: CopyNamesToClipWithoutExt

From TotalcmdWiki
Revision as of 06:49, 21 November 2007 by Icfu (talk | contribs) (Rewritten using AHK improvements like RegEx syntax)
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
PostMessage, 1075, 2017
Return

OnClipboardChange:
Clipboard := RegExReplace(Clipboard, "(.+)\..+", "$1")
Return

Back to AutoHotkey