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.
clipboard = %clipboard%
ClipisSaved := clipboard
Send ^c
clipboard = %clipboard%
clipboard = %ClipisSaved%`r`n%clipboard%
;StringReplace, clipboard, ClipisSaved, 'n, clipboard
;MsgBox % ClipBoard

;this code below empthy clipboard
clipboard = ;
;MsgBox ClipBoard is Empthy!

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

No comments:

Post a Comment