AutoHotkey: CopyNamesToClipWithoutExt: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
(Rewritten using AHK improvements like RegEx syntax)
(Fix)
Line 6: Line 6:
  #IfWinActive, ahk_class TTOTAL_CMD
  #IfWinActive, ahk_class TTOTAL_CMD
  ^!+c::                              ;*** Adjust hotkey when needed
  ^!+c::                              ;*** Adjust hotkey when needed
Clipboard := ""
  PostMessage, 1075, 2017
  PostMessage, 1075, 2017
  Return
  ClipWait, 1
OnClipboardChange:
  Clipboard := RegExReplace(Clipboard, "(.+)\..+", "$1")
  Clipboard := RegExReplace(Clipboard, "(.+)\..+", "$1")
  Return
  Return


{{translated|AutoHotkey: Kopiere Dateinamen ohne Erweiterung in die Zwischenablage|AutoHotkey}}
{{translated|AutoHotkey: Kopiere Dateinamen ohne Erweiterung in die Zwischenablage|AutoHotkey}}

Revision as of 11:02, 21 November 2007

/*
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