Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Clipboard hotkey functions


  • Please log in to reply
3 replies to this topic
CyberSlug
  • Members
  • 3 posts
  • Last active: Feb 21 2005 05:16 AM
  • Joined: 08 Mar 2004
; Useful Clipboard hokey additions

; 8 March 2004 - CyberSlug





; Append, Ctrl+Shift+C, adds newline plus selected text to clipboard.

^+c::

   bak = %clipboard%

   Send, ^c

   clipboard = %bak%`r`n%clipboard%

return





; Replace, Ctrl+Shift+V, swaps selected text with clipboard text.

^+v::

   itemOne = %clipboard%

   Send, ^c

   itemTwo = %clipboard%

   clipboard = %itemOne%

   Send, ^v

   clipboard = %itemTwo%

return





; Clear, Ctrl+Shift+X, clear the clipboard

^+x::

   clipboard = ;null

return


Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
Say, those are very nice, and ingeniously simple. There's no need for some fancy bloatware clipboard "helper" app if you can manipulate the clipboard with a few simple hotkeys. I think I might use these!

On a side-note, one little-known feature of AutoHotkey is that when you copy files onto the clipboard, such as by pressing Ctrl-C in an open Explorer window, those files will be auto-converted to a list of filenames whenever you reference the clipboard variable in a script. I use this for quite a few things.

Lucid_Method
  • Members
  • 146 posts
  • Last active: May 26 2014 03:10 AM
  • Joined: 19 Apr 2010
***MASSIVE BUMP***

Out of curiosity I looked at the very last post on this forum - from 2004. Useful tip - glad I looked :-)


one little-known feature of AutoHotkey is that when you copy files onto the clipboard, such as by pressing Ctrl-C in an open Explorer window, those files will be auto-converted to a list of filenames whenever you reference the clipboard variable in a script. I use this for quite a few things.


Simple test. It works. Nice.

;==========================================================================
; Open Windows Explorer
; Press Control C to Copy Some Files/Folders
; Then press F1 hotkey to display clipboard contents. 
;==========================================================================

Return

F1::Msgbox %Clipboard%


sumon
  • Moderators
  • 1315 posts
  • Last active: Oct 22 2014 10:08 PM
  • Joined: 18 May 2010

Code is too confusing.


What's confusing with the code?

If you want something non-confusing and configurable for manipulating, try out Pastej! :)