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

From TotalcmdWiki
Jump to navigation Jump to search
(errors corrected)
(new bugfixed version)
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.
  ; Raise the sleep interval, specified in milliseconds, if the error box
  ; Adjust the line '''''Send, {RBUTTON}c''''' to match the menu shortcut
  ; is not closed automatically, lower it if your system is fast enough.
; for Ctrl-C in your language file, for example '''''k''''' when using
  ; a German LNG-file.
   
   
  *~LButton Up::
  *~LButton Up::
  IfWinActive, ahk_class TLister
  If (WinActive("Lister - [") AND A_Cursor="IBeam")
{
   Send, {RBUTTON}c
   Send, ^c
  Sleep 100
  IfWinActive, ahk_class #32770
    Send, {ESC}
}
  Return
  Return




Back to [[AutoHotkey]]
Back to [[AutoHotkey]]

Revision as of 02:30, 24 July 2005

; 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
; a German LNG-file.

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


Back to AutoHotkey