Monday, October 12, 2009

how to enable in Vista (etc ...) clipboard tricks

If you don't know what I'm talking about read this article.

you can make in windows such thinks:


ctrl+g => append to clipboard new selection
ctrl+d => empthy clipboard
win+s => show clipboard content

These all are possible with: AutoHotKey

Check this tutorial: Tutorial

The script is:

; this code below enable append clipboard content

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
^g::
clipboard = %clipboard%
ClipisSaved := clipboard
Send ^c
clipboard = %clipboard%
clipboard = %ClipisSaved%`r`n%clipboard%
;StringReplace, clipboard, ClipisSaved, 'n, clipboard
;MsgBox % ClipBoard
return

;this code below empthy clipboard
^d::
clipboard = ;
;MsgBox ClipBoard is Empthy!
return

;this code below show the content from the clipboard
#s:: MsgBox % ClipBoard

No comments:

Post a Comment