AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Clipboard hotkey functions

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
CyberSlug



Joined: 08 Mar 2004
Posts: 3

PostPosted: Mon Mar 08, 2004 8:29 am    Post subject: Clipboard hotkey functions Reply with quote

Code:
; 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
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Mon Mar 08, 2004 2:52 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group