 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
CyberSlug
Joined: 08 Mar 2004 Posts: 3
|
Posted: Mon Mar 08, 2004 8:29 am Post subject: Clipboard hotkey functions |
|
|
| 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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Mon Mar 08, 2004 2:52 pm Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|