AutoHotkey Community

It is currently May 27th, 2012, 10:55 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: March 8th, 2004, 8:29 am 
Offline

Joined: March 8th, 2004, 6:24 am
Posts: 3
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 8th, 2004, 2:52 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 18th, 2011, 9:18 am 
Offline

Joined: April 19th, 2010, 10:22 pm
Posts: 145
Location: Mobile, AL
***MASSIVE BUMP***

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


Chris wrote:
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.

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

Return

F1::Msgbox %Clipboard%

_________________
Image
Macro Everything
Lucid_Method Index


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 20th, 2011, 3:30 pm 
Offline
User avatar

Joined: May 18th, 2010, 3:10 pm
Posts: 1179
Location: Sweden
nikozan wrote:
Code is too confusing.


What's confusing with the code?

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

_________________
~sumon Appifyer AHK Nova halted Recommended: AHK_L (Why?)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 53 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group