AutoHotkey: Copy Selection To Clipboard In Lister: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
(new bugfixed version)
(Added category AutoHotkey scripts)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
; Text you select in the lister is automatically copied to clipboard.
Text you select in the lister is automatically copied to clipboard.
  ; Adjust the line '''''Send, {RBUTTON}c''''' to match the menu shortcut
 
; for Ctrl-C in your language file, for example '''''k''''' when using
  ; Adjust the lines '''''Send, {RBUTTON}c''''' to match the menu shortcut for Ctrl-C in your language file,
  ; a German LNG-file.
; for example '''''Send, {RBUTTON}k''''' when using a German LNG-file.
; This shortcut can be found in the languagefile %Commander_path%\language\WCMD_***.LNG
; in the line that begins with 5921=
  ; German: WCMD_DEU.LNG
; 5921="Als Text &'''k'''opieren"
; '''''Send, {RBUTTON}k'''''.
; French: WCMD_FRA.LNG
; 5921="Copier comme &'''t'''exte"
; '''''Send, {RBUTTON}t'''''.
   
   
  *~LButton Up::
  ~LButton Up::
  If (WinActive("Lister - [") AND A_Cursor="IBeam")
Sleep 250
  If (WinActive("Lister -") AND A_Cursor="IBeam")
   Send, {RBUTTON}c
   Send, {RBUTTON}c
Return
~^a::
If WinActive("Lister -")
  Send, ^c
  Return
  Return




Back to [[AutoHotkey]]
Back to [[AutoHotkey]]
[[Category:AutoHotkey scripts|Copy Selection To Clipboard In Lister]]
[[de:AutoHotkey: Im Lister ausgewählter Text wird automatisch in die Zwischenablage kopiert]]

Latest revision as of 19:04, 1 June 2008

Text you select in the lister is automatically copied to clipboard.

; Adjust the lines Send, {RBUTTON}c to match the menu shortcut for Ctrl-C in your language file,
; for example Send, {RBUTTON}k when using a German LNG-file.
; This shortcut can be found in the languagefile %Commander_path%\language\WCMD_***.LNG
; in the line that begins with 5921=
; German: WCMD_DEU.LNG
; 5921="Als Text &kopieren"
; Send, {RBUTTON}k.
; French: WCMD_FRA.LNG
; 5921="Copier comme &texte"
; Send, {RBUTTON}t.

~LButton Up::
Sleep 250
If (WinActive("Lister -") AND A_Cursor="IBeam")
  Send, {RBUTTON}c
Return

~^a::
If WinActive("Lister -")
  Send, ^c
Return


Back to AutoHotkey